DART
6.7.3
|
class JointConstraint More...
#include <JointConstraint.hpp>
Public Member Functions | |
JointConstraint (dynamics::BodyNode *_body) | |
Contructor. More... | |
JointConstraint (dynamics::BodyNode *_body1, dynamics::BodyNode *_body2) | |
Contructor. More... | |
virtual | ~JointConstraint () |
Destructor. More... | |
dynamics::BodyNode * | getBodyNode1 () const |
Get the first BodyNode that this constraint is associated with. More... | |
dynamics::BodyNode * | getBodyNode2 () const |
Get the second BodyNode that this constraint is associated with. More... | |
std::size_t | getDimension () const |
Return dimesion of this constranit. More... | |
virtual void | update ()=0 |
Update constraint using updated Skeleton's states. More... | |
virtual void | getInformation (ConstraintInfo *info)=0 |
Fill LCP variables. More... | |
virtual void | applyUnitImpulse (std::size_t index)=0 |
Apply unit impulse to constraint space. More... | |
virtual void | getVelocityChange (double *vel, bool withCfm)=0 |
Get velocity change due to the uint impulse. More... | |
virtual void | excite ()=0 |
Excite the constraint. More... | |
virtual void | unexcite ()=0 |
Unexcite the constraint. More... | |
virtual void | applyImpulse (double *lambda)=0 |
Apply computed constraint impulse to constrained skeletons. More... | |
virtual bool | isActive () const =0 |
Return true if this constraint is active. More... | |
virtual dynamics::SkeletonPtr | getRootSkeleton () const =0 |
virtual void | uniteSkeletons () |
Static Public Member Functions | |
static void | setErrorAllowance (double _allowance) |
Set global error reduction parameter. More... | |
static double | getErrorAllowance () |
Get global error reduction parameter. More... | |
static void | setErrorReductionParameter (double _erp) |
Set global error reduction parameter. More... | |
static double | getErrorReductionParameter () |
Get global error reduction parameter. More... | |
static void | setMaxErrorReductionVelocity (double _erv) |
Set global error reduction parameter. More... | |
static double | getMaxErrorReductionVelocity () |
Get global error reduction parameter. More... | |
static void | setConstraintForceMixing (double _cfm) |
Set global constraint force mixing parameter. More... | |
static double | getConstraintForceMixing () |
Get global constraint force mixing parameter. More... | |
static dynamics::SkeletonPtr | getRootSkeleton (dynamics::SkeletonPtr skeleton) |
static dynamics::SkeletonPtr | compressPath (dynamics::SkeletonPtr skeleton) |
Protected Attributes | |
dynamics::BodyNode * | mBodyNode1 |
First body node. More... | |
dynamics::BodyNode * | mBodyNode2 |
Second body node. More... | |
std::size_t | mDim |
Dimension of constraint. More... | |
Static Protected Attributes | |
static double | mErrorAllowance = 0.0 |
Global constraint error allowance. More... | |
static double | mErrorReductionParameter = 0.01 |
Global constraint error redection parameter in the range of [0, 1]. More... | |
static double | mMaxErrorReductionVelocity = 1e+1 |
Maximum error reduction velocity. More... | |
static double | mConstraintForceMixing = 1e-9 |
Global constraint force mixing parameter in the range of [1e-9, 1]. More... | |
class JointConstraint
|
explicit |
Contructor.
dart::constraint::JointConstraint::JointConstraint | ( | dynamics::BodyNode * | _body1, |
dynamics::BodyNode * | _body2 | ||
) |
Contructor.
|
virtual |
Destructor.
|
pure virtualinherited |
Apply computed constraint impulse to constrained skeletons.
Implemented in dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::ContactConstraint, dart::constraint::WeldJointConstraint, dart::constraint::SoftContactConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, and dart::constraint::BallJointConstraint.
|
pure virtualinherited |
Apply unit impulse to constraint space.
Implemented in dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::ContactConstraint, dart::constraint::WeldJointConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, dart::constraint::BallJointConstraint, and dart::constraint::SoftContactConstraint.
|
staticinherited |
|
pure virtualinherited |
Excite the constraint.
Implemented in dart::constraint::WeldJointConstraint, dart::constraint::SoftContactConstraint, dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, dart::constraint::ContactConstraint, and dart::constraint::BallJointConstraint.
dynamics::BodyNode * dart::constraint::JointConstraint::getBodyNode1 | ( | ) | const |
Get the first BodyNode that this constraint is associated with.
dynamics::BodyNode * dart::constraint::JointConstraint::getBodyNode2 | ( | ) | const |
Get the second BodyNode that this constraint is associated with.
|
static |
Get global constraint force mixing parameter.
|
inherited |
Return dimesion of this constranit.
|
static |
Get global error reduction parameter.
|
static |
Get global error reduction parameter.
|
pure virtualinherited |
Fill LCP variables.
Implemented in dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::ContactConstraint, dart::constraint::WeldJointConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, dart::constraint::BallJointConstraint, and dart::constraint::SoftContactConstraint.
|
static |
Get global error reduction parameter.
|
pure virtualinherited |
Implemented in dart::constraint::WeldJointConstraint, dart::constraint::SoftContactConstraint, dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, dart::constraint::ContactConstraint, and dart::constraint::BallJointConstraint.
|
staticinherited |
|
pure virtualinherited |
Get velocity change due to the uint impulse.
Implemented in dart::constraint::ContactConstraint, dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::WeldJointConstraint, dart::constraint::SoftContactConstraint, dart::constraint::BallJointConstraint, dart::constraint::JointLimitConstraint, and dart::constraint::JointCoulombFrictionConstraint.
|
pure virtualinherited |
Return true if this constraint is active.
Implemented in dart::constraint::WeldJointConstraint, dart::constraint::SoftContactConstraint, dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, dart::constraint::ContactConstraint, and dart::constraint::BallJointConstraint.
|
static |
Set global constraint force mixing parameter.
|
static |
Set global error reduction parameter.
|
static |
Set global error reduction parameter.
|
static |
Set global error reduction parameter.
|
pure virtualinherited |
Unexcite the constraint.
Implemented in dart::constraint::WeldJointConstraint, dart::constraint::SoftContactConstraint, dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, dart::constraint::ContactConstraint, and dart::constraint::BallJointConstraint.
|
virtualinherited |
|
pure virtualinherited |
Update constraint using updated Skeleton's states.
Implemented in dart::constraint::WeldJointConstraint, dart::constraint::SoftContactConstraint, dart::constraint::ServoMotorConstraint, dart::constraint::MimicMotorConstraint, dart::constraint::JointLimitConstraint, dart::constraint::JointCoulombFrictionConstraint, dart::constraint::ContactConstraint, and dart::constraint::BallJointConstraint.
|
protected |
First body node.
|
protected |
Second body node.
|
staticprotected |
Global constraint force mixing parameter in the range of [1e-9, 1].
The default is 1e-5
|
protectedinherited |
Dimension of constraint.
|
staticprotected |
Global constraint error allowance.
|
staticprotected |
Global constraint error redection parameter in the range of [0, 1].
The default is 0.01.
|
staticprotected |
Maximum error reduction velocity.