JointConstraint handles multiple constraints that are defined in the joint space, such as joint position/velocity limits and servo motor.
More...
#include <JointConstraint.hpp>
|
std::size_t | mDim |
| Dimension of constraint.
|
|
|
dynamics::Joint * | mJoint |
| The Joint that this constraint is associated with.
|
|
dynamics::BodyNode * | mBodyNode |
| The child BodyNode of the Joint that this constraint is associated with.
|
|
std::size_t | mAppliedImpulseIndex |
| Index of applied impulse.
|
|
Eigen::Matrix< std::size_t, 6, 1 > | mLifeTime |
| Life time of constraint of each DOF.
|
|
Eigen::Matrix< bool, 6, 1 > | mActive |
| Whether any of the joint contraint is active of each joint.
|
|
Eigen::Matrix< double, 6, 1 > | mDesiredVelocityChange |
| The desired delta velocity to satisfy the joint limit constraint.
|
|
Eigen::Matrix< double, 6, 1 > | mOldX |
| Constraint impulse of the previous step.
|
|
Eigen::Matrix< double, 6, 1 > | mImpulseUpperBound |
| Upper limit of the constraint impulse.
|
|
Eigen::Matrix< double, 6, 1 > | mImpulseLowerBound |
| Lower limit of the constraint impulse.
|
|
JointConstraint handles multiple constraints that are defined in the joint space, such as joint position/velocity limits and servo motor.
◆ JointConstraint()
dart::constraint::JointConstraint::JointConstraint |
( |
dynamics::Joint * |
joint | ) |
|
|
explicit |
◆ ~JointConstraint()
dart::constraint::JointConstraint::~JointConstraint |
( |
| ) |
|
|
overridedefault |
◆ applyImpulse()
void dart::constraint::JointConstraint::applyImpulse |
( |
double * |
lambda | ) |
|
|
overrideprotectedvirtual |
◆ applyUnitImpulse()
void dart::constraint::JointConstraint::applyUnitImpulse |
( |
std::size_t |
index | ) |
|
|
overrideprotectedvirtual |
◆ compressPath()
◆ excite()
void dart::constraint::JointConstraint::excite |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ getConstraintForceMixing()
double dart::constraint::JointConstraint::getConstraintForceMixing |
( |
| ) |
|
|
static |
Get global constraint force mixing parameter.
◆ getDimension()
std::size_t dart::constraint::ConstraintBase::getDimension |
( |
| ) |
const |
|
inherited |
Return dimesion of this constranit.
◆ getErrorAllowance()
double dart::constraint::JointConstraint::getErrorAllowance |
( |
| ) |
|
|
static |
Get global error reduction parameter.
◆ getErrorReductionParameter()
double dart::constraint::JointConstraint::getErrorReductionParameter |
( |
| ) |
|
|
static |
Get global error reduction parameter.
◆ getInformation()
void dart::constraint::JointConstraint::getInformation |
( |
ConstraintInfo * |
info | ) |
|
|
overrideprotectedvirtual |
◆ getMaxErrorReductionVelocity()
double dart::constraint::JointConstraint::getMaxErrorReductionVelocity |
( |
| ) |
|
|
static |
Get global error reduction parameter.
◆ getRootSkeleton() [1/2]
◆ getRootSkeleton() [2/2]
◆ getStaticType()
const std::string & dart::constraint::JointConstraint::getStaticType |
( |
| ) |
|
|
static |
Returns constraint type for this class.
◆ getType()
const std::string & dart::constraint::JointConstraint::getType |
( |
| ) |
const |
|
overridevirtual |
◆ getVelocityChange()
void dart::constraint::JointConstraint::getVelocityChange |
( |
double * |
vel, |
|
|
bool |
withCfm |
|
) |
| |
|
overrideprotectedvirtual |
◆ isActive()
bool dart::constraint::JointConstraint::isActive |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ setConstraintForceMixing()
void dart::constraint::JointConstraint::setConstraintForceMixing |
( |
double |
cfm | ) |
|
|
static |
Set global constraint force mixing parameter.
◆ setErrorAllowance()
void dart::constraint::JointConstraint::setErrorAllowance |
( |
double |
allowance | ) |
|
|
static |
Set global error reduction parameter.
◆ setErrorReductionParameter()
void dart::constraint::JointConstraint::setErrorReductionParameter |
( |
double |
erp | ) |
|
|
static |
Set global error reduction parameter.
◆ setMaxErrorReductionVelocity()
void dart::constraint::JointConstraint::setMaxErrorReductionVelocity |
( |
double |
erv | ) |
|
|
static |
Set global error reduction parameter.
◆ unexcite()
void dart::constraint::JointConstraint::unexcite |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ uniteSkeletons()
void dart::constraint::ConstraintBase::uniteSkeletons |
( |
| ) |
|
|
virtualinherited |
◆ update()
void dart::constraint::JointConstraint::update |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ ConstrainedGroup
◆ ConstraintSolver
◆ mActive
Eigen::Matrix<bool, 6, 1> dart::constraint::JointConstraint::mActive |
|
private |
Whether any of the joint contraint is active of each joint.
◆ mAppliedImpulseIndex
std::size_t dart::constraint::JointConstraint::mAppliedImpulseIndex |
|
private |
Index of applied impulse.
◆ mBodyNode
The child BodyNode of the Joint that this constraint is associated with.
◆ mConstraintForceMixing
double dart::constraint::JointConstraint::mConstraintForceMixing = 1e-9 |
|
staticprivate |
◆ mDesiredVelocityChange
Eigen::Matrix<double, 6, 1> dart::constraint::JointConstraint::mDesiredVelocityChange |
|
private |
The desired delta velocity to satisfy the joint limit constraint.
◆ mDim
std::size_t dart::constraint::ConstraintBase::mDim |
|
protectedinherited |
◆ mErrorAllowance
double dart::constraint::JointConstraint::mErrorAllowance = 0.0 |
|
staticprivate |
Global constraint error allowance.
◆ mErrorReductionParameter
double dart::constraint::JointConstraint::mErrorReductionParameter = 0.01 |
|
staticprivate |
Global constraint error redection parameter in the range of [0, 1].
The default is 0.01.
◆ mImpulseLowerBound
Eigen::Matrix<double, 6, 1> dart::constraint::JointConstraint::mImpulseLowerBound |
|
private |
Lower limit of the constraint impulse.
◆ mImpulseUpperBound
Eigen::Matrix<double, 6, 1> dart::constraint::JointConstraint::mImpulseUpperBound |
|
private |
Upper limit of the constraint impulse.
◆ mJoint
The Joint that this constraint is associated with.
◆ mLifeTime
Eigen::Matrix<std::size_t, 6, 1> dart::constraint::JointConstraint::mLifeTime |
|
private |
Life time of constraint of each DOF.
◆ mMaxErrorReductionVelocity
double dart::constraint::JointConstraint::mMaxErrorReductionVelocity = 1e+1 |
|
staticprivate |
Maximum error reduction velocity.
◆ mOldX
Eigen::Matrix<double, 6, 1> dart::constraint::JointConstraint::mOldX |
|
private |
Constraint impulse of the previous step.