33 #ifndef DART_CONSTRAINT_JOINTLIMITCONSTRAINT_HPP_
34 #define DART_CONSTRAINT_JOINTLIMITCONSTRAINT_HPP_
45 namespace constraint {
ConstrainedGroup is a group of skeletons that interact each other with constraints.
Definition: ConstrainedGroup.hpp:58
Constraint is a base class of concrete constraints classes.
Definition: ConstraintBase.hpp:75
ConstraintSolver manages constraints and computes constraint impulses.
Definition: ConstraintSolver.hpp:56
JointLimitConstraint handles joint position or velocity limits.
Definition: JointLimitConstraint.hpp:50
static void setMaxErrorReductionVelocity(double _erv)
Set global error reduction parameter.
Definition: JointLimitConstraint.cpp:135
double mUpperBound[6]
Definition: JointLimitConstraint.hpp:151
static double getErrorReductionParameter()
Get global error reduction parameter.
Definition: JointLimitConstraint.cpp:129
virtual ~JointLimitConstraint()
Destructor.
Definition: JointLimitConstraint.cpp:83
static double mMaxErrorReductionVelocity
Maximum error reduction velocity.
Definition: JointLimitConstraint.hpp:164
void unexcite() override
Unexcite the constraint.
Definition: JointLimitConstraint.cpp:356
static double mErrorAllowance
Global constraint error allowance.
Definition: JointLimitConstraint.hpp:157
double mLowerBound[6]
Definition: JointLimitConstraint.hpp:154
double mOldX[6]
Definition: JointLimitConstraint.hpp:148
std::size_t mLifeTime[6]
Definition: JointLimitConstraint.hpp:136
void getVelocityChange(double *_delVel, bool _withCfm) override
Get velocity change due to the uint impulse.
Definition: JointLimitConstraint.cpp:319
dynamics::SkeletonPtr getRootSkeleton() const override
Definition: JointLimitConstraint.cpp:381
void applyUnitImpulse(std::size_t _index) override
Apply unit impulse to constraint space.
Definition: JointLimitConstraint.cpp:290
double mViolation[6]
Definition: JointLimitConstraint.hpp:142
static void setErrorReductionParameter(double _erp)
Set global error reduction parameter.
Definition: JointLimitConstraint.cpp:109
double mNegativeVel[6]
Definition: JointLimitConstraint.hpp:145
static void setErrorAllowance(double _allowance)
Set global error reduction parameter.
Definition: JointLimitConstraint.cpp:88
static double getConstraintForceMixing()
Get global constraint force mixing parameter.
Definition: JointLimitConstraint.cpp:176
static double getMaxErrorReductionVelocity()
Get global error reduction parameter.
Definition: JointLimitConstraint.cpp:150
void update() override
Update constraint using updated Skeleton's states.
Definition: JointLimitConstraint.cpp:182
void getInformation(ConstraintInfo *_lcp) override
Fill LCP variables.
Definition: JointLimitConstraint.cpp:241
bool isActive() const override
Return true if this constraint is active.
Definition: JointLimitConstraint.cpp:387
static void setConstraintForceMixing(double _cfm)
Set global constraint force mixing parameter.
Definition: JointLimitConstraint.cpp:156
std::size_t mAppliedImpulseIndex
Index of applied impulse.
Definition: JointLimitConstraint.hpp:133
dynamics::BodyNode * mBodyNode
Definition: JointLimitConstraint.hpp:130
static double getErrorAllowance()
Get global error reduction parameter.
Definition: JointLimitConstraint.cpp:103
static double mConstraintForceMixing
Global constraint force mixing parameter in the range of [1e-9, 1].
Definition: JointLimitConstraint.hpp:169
dynamics::Joint * mJoint
Definition: JointLimitConstraint.hpp:127
static double mErrorReductionParameter
Global constraint error redection parameter in the range of [0, 1].
Definition: JointLimitConstraint.hpp:161
void applyImpulse(double *_lambda) override
Apply computed constraint impulse to constrained skeletons.
Definition: JointLimitConstraint.cpp:362
void excite() override
Excite the constraint.
Definition: JointLimitConstraint.cpp:350
bool mActive[6]
Definition: JointLimitConstraint.hpp:139
JointLimitConstraint(dynamics::Joint *_joint)
Constructor.
Definition: JointLimitConstraint.cpp:58
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:78
class Joint
Definition: Joint.hpp:59
std::shared_ptr< Skeleton > SkeletonPtr
Definition: SmartPointer.hpp:60
Definition: BulletCollisionDetector.cpp:63
ConstraintInfo.
Definition: ConstraintBase.hpp:50