|  | RobWorkProject
    23.9.11-
    | 
Allows constraining the motion between two bodies in Bullet simulation. More...
#include <BtConstraint.hpp>
| Public Member Functions | |
| BtConstraint (rw::core::Ptr< const rwsim::dynamics::Constraint > constraint, const BtBody *const parent, const BtBody *const child, btDynamicsWorld *btWorld) | |
| Construct a new Bullet implementation of a Constraint.  More... | |
| virtual | ~BtConstraint () | 
| Destructor. | |
| btTypedConstraint * | getBtConstraint () const | 
| Get the Bullet constraint that this class is wrapping.  More... | |
| rw::core::Ptr< const rwsim::dynamics::Constraint > | getRWConstraint () const | 
| Get the RobWork constraint.  More... | |
| btRigidBody * | getBtParent () const | 
| Get the Bullet parent body.  More... | |
| btRigidBody * | getBtChild () const | 
| Get the Bullet child body.  More... | |
| rw::math::Vector3D | getRefA () const | 
| Get the position where feedback force and torque act on first body.  More... | |
| rw::math::Vector3D | getRefB () const | 
| Get the position where feedback force and torque act on second body.  More... | |
| void | update (const double dt, rw::kinematics::State &state) | 
| Update spring forces based on given position and velocities.  More... | |
| void | postUpdate (rw::kinematics::State &state) | 
| Update RobWork state with forces.  More... | |
| btJointFeedback * | getFeedback () | 
| Get the feedback for the constraint.  More... | |
Allows constraining the motion between two bodies in Bullet simulation.
This is the Bullet implementation of rwsim::dynamics::Constraint
| BtConstraint | ( | rw::core::Ptr< const rwsim::dynamics::Constraint > | constraint, | 
| const BtBody *const | parent, | ||
| const BtBody *const | child, | ||
| btDynamicsWorld * | btWorld | ||
| ) | 
Construct a new Bullet implementation of a Constraint.
| constraint | [in] the RobWork constraint. | 
| parent | [in] the parent Bullet body. | 
| child | [in] the child Bullet body. | 
| btWorld | [in] the Bullet world that this constraint should belong to. | 
| btRigidBody* getBtChild | ( | ) | const | 
Get the Bullet child body.
| btTypedConstraint* getBtConstraint | ( | ) | const | 
Get the Bullet constraint that this class is wrapping.
| btRigidBody* getBtParent | ( | ) | const | 
Get the Bullet parent body.
| btJointFeedback* getFeedback | ( | ) | 
Get the feedback for the constraint.
| rw::math::Vector3D getRefA | ( | ) | const | 
Get the position where feedback force and torque act on first body.
| rw::math::Vector3D getRefB | ( | ) | const | 
Get the position where feedback force and torque act on second body.
| rw::core::Ptr<const rwsim::dynamics::Constraint> getRWConstraint | ( | ) | const | 
Get the RobWork constraint.
| void postUpdate | ( | rw::kinematics::State & | state | ) | 
Update RobWork state with forces.
| state | [in/out] the state to update. | 
| void update | ( | const double | dt, | 
| rw::kinematics::State & | state | ||
| ) | 
Update spring forces based on given position and velocities.
| dt | [in] information about the step size. | 
| state | [in/out] the state. |