33 #ifndef DART_CONSTRAINT_MIMICMOTORCONSTRAINT_HPP_
34 #define DART_CONSTRAINT_MIMICMOTORCONSTRAINT_HPP_
45 namespace constraint {
55 double multiplier = 1.0,
std::size_t index
Definition: SkelParser.cpp:1617
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
Servo motor constraint.
Definition: MimicMotorConstraint.hpp:49
std::size_t mLifeTime[6]
Definition: MimicMotorConstraint.hpp:127
double mUpperBound[6]
Definition: MimicMotorConstraint.hpp:141
dynamics::BodyNode * mBodyNode
Definition: MimicMotorConstraint.hpp:121
~MimicMotorConstraint() override
Destructor.
Definition: MimicMotorConstraint.cpp:86
bool isActive() const override
Return true if this constraint is active.
Definition: MimicMotorConstraint.cpp:291
static double getConstraintForceMixing()
Get global constraint force mixing parameter.
Definition: MimicMotorConstraint.cpp:116
void getVelocityChange(double *delVel, bool withCfm) override
Get velocity change due to the uint impulse.
Definition: MimicMotorConstraint.cpp:222
double mOldX[6]
Definition: MimicMotorConstraint.hpp:138
std::size_t mAppliedImpulseIndex
Index of applied impulse.
Definition: MimicMotorConstraint.hpp:124
const dynamics::Joint * mMimicJoint
Definition: MimicMotorConstraint.hpp:115
MimicMotorConstraint(dynamics::Joint *joint, const dynamics::Joint *mimicJoint, double multiplier=1.0, double offset=0.0)
Constructor.
Definition: MimicMotorConstraint.cpp:52
double mMultiplier
Definition: MimicMotorConstraint.hpp:118
double mNegativeVelocityError[6]
Definition: MimicMotorConstraint.hpp:135
double mLowerBound[6]
Definition: MimicMotorConstraint.hpp:144
dynamics::Joint * mJoint
Definition: MimicMotorConstraint.hpp:112
static void setConstraintForceMixing(double cfm)
Set global constraint force mixing parameter.
Definition: MimicMotorConstraint.cpp:92
void update() override
Update constraint using updated Skeleton's states.
Definition: MimicMotorConstraint.cpp:122
void unexcite() override
Unexcite the constraint.
Definition: MimicMotorConstraint.cpp:259
static double mConstraintForceMixing
Global constraint force mixing parameter in the range of [1e-9, 1].
Definition: MimicMotorConstraint.hpp:149
bool mActive[6]
Definition: MimicMotorConstraint.hpp:132
void getInformation(ConstraintInfo *lcp) override
Fill LCP variables.
Definition: MimicMotorConstraint.cpp:166
void applyImpulse(double *lambda) override
Apply computed constraint impulse to constrained skeletons.
Definition: MimicMotorConstraint.cpp:265
void applyUnitImpulse(std::size_t index) override
Apply unit impulse to constraint space.
Definition: MimicMotorConstraint.cpp:193
dynamics::SkeletonPtr getRootSkeleton() const override
Definition: MimicMotorConstraint.cpp:285
void excite() override
Excite the constraint.
Definition: MimicMotorConstraint.cpp:253
double mOffset
Definition: MimicMotorConstraint.hpp:118
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