|
DART 6.12.2
|
Joint Coulomb friction constraint. More...
#include <JointCoulombFrictionConstraint.hpp>
Public Member Functions | |
| JointCoulombFrictionConstraint (dynamics::Joint *_joint) | |
| Constructor. | |
| virtual | ~JointCoulombFrictionConstraint () |
| Destructor. | |
| const std::string & | getType () const override |
| Returns a string representing the constraint type. | |
| std::size_t | getDimension () const |
| Return dimesion of this constranit. | |
| virtual void | uniteSkeletons () |
Static Public Member Functions | |
| static const std::string & | getStaticType () |
| Returns constraint type for this class. | |
| static void | setConstraintForceMixing (double _cfm) |
| Set global constraint force mixing parameter. | |
| static double | getConstraintForceMixing () |
| Get global constraint force mixing parameter. | |
| static dynamics::SkeletonPtr | getRootSkeleton (dynamics::SkeletonPtr skeleton) |
| static dynamics::SkeletonPtr | compressPath (dynamics::SkeletonPtr skeleton) |
Protected Member Functions | |
| void | update () override |
| Update constraint using updated Skeleton's states. | |
| void | getInformation (ConstraintInfo *_lcp) override |
| Fill LCP variables. | |
| void | applyUnitImpulse (std::size_t _index) override |
| Apply unit impulse to constraint space. | |
| void | getVelocityChange (double *_delVel, bool _withCfm) override |
| Get velocity change due to the uint impulse. | |
| void | excite () override |
| Excite the constraint. | |
| void | unexcite () override |
| Unexcite the constraint. | |
| void | applyImpulse (double *_lambda) override |
| Apply computed constraint impulse to constrained skeletons. | |
| dynamics::SkeletonPtr | getRootSkeleton () const override |
| bool | isActive () const override |
| Return true if this constraint is active. | |
Protected Attributes | |
| std::size_t | mDim |
| Dimension of constraint. | |
Private Attributes | |
| dynamics::Joint * | mJoint |
| dynamics::BodyNode * | mBodyNode |
| std::size_t | mAppliedImpulseIndex |
| Index of applied impulse. | |
| std::size_t | mLifeTime [6] |
| bool | mActive [6] |
| double | mNegativeVel [6] |
| double | mOldX [6] |
| double | mUpperBound [6] |
| double | mLowerBound [6] |
Static Private Attributes | |
| static double | mConstraintForceMixing = 1e-9 |
| Global constraint force mixing parameter in the range of [1e-9, 1]. | |
Friends | |
| class | ConstraintSolver |
| class | ConstrainedGroup |
Joint Coulomb friction constraint.
|
explicit |
Constructor.
|
virtual |
Destructor.
|
overrideprotectedvirtual |
Apply computed constraint impulse to constrained skeletons.
Implements dart::constraint::ConstraintBase.
|
overrideprotectedvirtual |
Apply unit impulse to constraint space.
Implements dart::constraint::ConstraintBase.
|
staticinherited |
|
overrideprotectedvirtual |
Excite the constraint.
Implements dart::constraint::ConstraintBase.
|
static |
Get global constraint force mixing parameter.
|
inherited |
Return dimesion of this constranit.
|
overrideprotectedvirtual |
Fill LCP variables.
Implements dart::constraint::ConstraintBase.
|
overrideprotectedvirtual |
Implements dart::constraint::ConstraintBase.
|
staticinherited |
|
static |
Returns constraint type for this class.
|
overridevirtual |
Returns a string representing the constraint type.
Reimplemented from dart::constraint::ConstraintBase.
|
overrideprotectedvirtual |
Get velocity change due to the uint impulse.
Implements dart::constraint::ConstraintBase.
|
overrideprotectedvirtual |
Return true if this constraint is active.
Implements dart::constraint::ConstraintBase.
|
static |
Set global constraint force mixing parameter.
|
overrideprotectedvirtual |
Unexcite the constraint.
Implements dart::constraint::ConstraintBase.
|
virtualinherited |
|
overrideprotectedvirtual |
Update constraint using updated Skeleton's states.
Implements dart::constraint::ConstraintBase.
|
friend |
|
friend |
|
private |
|
private |
Index of applied impulse.
|
private |
|
staticprivate |
Global constraint force mixing parameter in the range of [1e-9, 1].
The default is 1e-5
|
protectedinherited |
Dimension of constraint.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |