33 #ifndef DART_CONSTRAINT_MIMICMOTORCONSTRAINT_HPP_
34 #define DART_CONSTRAINT_MIMICMOTORCONSTRAINT_HPP_
45 namespace constraint {
55 double multiplier = 1.0,
62 const std::string&
getType()
const override;
std::size_t index
Definition: SkelParser.cpp:1672
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:57
Servo motor constraint.
Definition: MimicMotorConstraint.hpp:49
std::size_t mLifeTime[6]
Definition: MimicMotorConstraint.hpp:133
double mUpperBound[6]
Definition: MimicMotorConstraint.hpp:147
dynamics::BodyNode * mBodyNode
Definition: MimicMotorConstraint.hpp:127
~MimicMotorConstraint() override
Destructor.
Definition: MimicMotorConstraint.cpp:86
bool isActive() const override
Return true if this constraint is active.
Definition: MimicMotorConstraint.cpp:296
static double getConstraintForceMixing()
Get global constraint force mixing parameter.
Definition: MimicMotorConstraint.cpp:121
void getVelocityChange(double *delVel, bool withCfm) override
Get velocity change due to the uint impulse.
Definition: MimicMotorConstraint.cpp:227
const std::string & getType() const override
Returns a string representing the constraint type.
Definition: MimicMotorConstraint.cpp:92
double mOldX[6]
Definition: MimicMotorConstraint.hpp:144
std::size_t mAppliedImpulseIndex
Index of applied impulse.
Definition: MimicMotorConstraint.hpp:130
static const std::string & getStaticType()
Returns constraint type for this class.
Definition: MimicMotorConstraint.cpp:98
const dynamics::Joint * mMimicJoint
Definition: MimicMotorConstraint.hpp:121
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:124
double mNegativeVelocityError[6]
Definition: MimicMotorConstraint.hpp:141
double mLowerBound[6]
Definition: MimicMotorConstraint.hpp:150
dynamics::Joint * mJoint
Definition: MimicMotorConstraint.hpp:118
static void setConstraintForceMixing(double cfm)
Set global constraint force mixing parameter.
Definition: MimicMotorConstraint.cpp:105
void update() override
Update constraint using updated Skeleton's states.
Definition: MimicMotorConstraint.cpp:127
void unexcite() override
Unexcite the constraint.
Definition: MimicMotorConstraint.cpp:264
static double mConstraintForceMixing
Global constraint force mixing parameter in the range of [1e-9, 1].
Definition: MimicMotorConstraint.hpp:155
bool mActive[6]
Definition: MimicMotorConstraint.hpp:138
void getInformation(ConstraintInfo *lcp) override
Fill LCP variables.
Definition: MimicMotorConstraint.cpp:171
void applyImpulse(double *lambda) override
Apply computed constraint impulse to constrained skeletons.
Definition: MimicMotorConstraint.cpp:270
void applyUnitImpulse(std::size_t index) override
Apply unit impulse to constraint space.
Definition: MimicMotorConstraint.cpp:198
dynamics::SkeletonPtr getRootSkeleton() const override
Definition: MimicMotorConstraint.cpp:290
void excite() override
Excite the constraint.
Definition: MimicMotorConstraint.cpp:258
double mOffset
Definition: MimicMotorConstraint.hpp:124
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:79
class Joint
Definition: Joint.hpp:60
std::shared_ptr< Skeleton > SkeletonPtr
Definition: SmartPointer.hpp:60
Definition: BulletCollisionDetector.cpp:65
ConstraintInfo.
Definition: ConstraintBase.hpp:50