ContactConstraint represents a contact constraint between two bodies.
More...
#include <ContactConstraint.hpp>
ContactConstraint represents a contact constraint between two bodies.
◆ TangentBasisMatrix
◆ ContactConstraint()
dart::constraint::ContactConstraint::ContactConstraint |
( |
collision::Contact & |
contact, |
|
|
double |
timeStep |
|
) |
| |
◆ ~ContactConstraint()
dart::constraint::ContactConstraint::~ContactConstraint |
( |
| ) |
|
|
overridedefault |
◆ applyImpulse()
void dart::constraint::ContactConstraint::applyImpulse |
( |
double * |
lambda | ) |
|
|
overrideprotectedvirtual |
◆ applyUnitImpulse()
void dart::constraint::ContactConstraint::applyUnitImpulse |
( |
std::size_t |
index | ) |
|
|
overrideprotectedvirtual |
◆ compressPath()
◆ excite()
void dart::constraint::ContactConstraint::excite |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ getConstraintForceMixing()
double dart::constraint::ContactConstraint::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::ContactConstraint::getErrorAllowance |
( |
| ) |
|
|
static |
Get global error reduction parameter.
◆ getErrorReductionParameter()
double dart::constraint::ContactConstraint::getErrorReductionParameter |
( |
| ) |
|
|
static |
Get global error reduction parameter.
◆ getFrictionDirection1()
const Eigen::Vector3d & dart::constraint::ContactConstraint::getFrictionDirection1 |
( |
| ) |
const |
Get first frictional direction.
◆ getInformation()
void dart::constraint::ContactConstraint::getInformation |
( |
ConstraintInfo * |
info | ) |
|
|
overrideprotectedvirtual |
◆ getMaxErrorReductionVelocity()
double dart::constraint::ContactConstraint::getMaxErrorReductionVelocity |
( |
| ) |
|
|
static |
Get global error reduction parameter.
◆ getRelVelocity()
void dart::constraint::ContactConstraint::getRelVelocity |
( |
double * |
relVel | ) |
|
|
private |
Get change in relative velocity at contact point due to external impulse.
- Parameters
-
[out] | relVel | Change in relative velocity at contact point of the two colliding bodies. |
◆ getRootSkeleton() [1/2]
◆ getRootSkeleton() [2/2]
◆ getTangentBasisMatrixODE()
◆ getVelocityChange()
void dart::constraint::ContactConstraint::getVelocityChange |
( |
double * |
vel, |
|
|
bool |
withCfm |
|
) |
| |
|
overrideprotectedvirtual |
◆ isActive()
bool dart::constraint::ContactConstraint::isActive |
( |
| ) |
const |
|
overrideprotectedvirtual |
◆ setConstraintForceMixing()
void dart::constraint::ContactConstraint::setConstraintForceMixing |
( |
double |
cfm | ) |
|
|
static |
Set global constraint force mixing parameter.
◆ setErrorAllowance()
void dart::constraint::ContactConstraint::setErrorAllowance |
( |
double |
allowance | ) |
|
|
static |
Set global error reduction parameter.
◆ setErrorReductionParameter()
void dart::constraint::ContactConstraint::setErrorReductionParameter |
( |
double |
erp | ) |
|
|
static |
Set global error reduction parameter.
◆ setFrictionDirection()
void dart::constraint::ContactConstraint::setFrictionDirection |
( |
const Eigen::Vector3d & |
dir | ) |
|
Set first frictional direction.
◆ setMaxErrorReductionVelocity()
void dart::constraint::ContactConstraint::setMaxErrorReductionVelocity |
( |
double |
erv | ) |
|
|
static |
Set global error reduction parameter.
◆ unexcite()
void dart::constraint::ContactConstraint::unexcite |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ uniteSkeletons()
void dart::constraint::ContactConstraint::uniteSkeletons |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ update()
void dart::constraint::ContactConstraint::update |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ updateFirstFrictionalDirection()
void dart::constraint::ContactConstraint::updateFirstFrictionalDirection |
( |
| ) |
|
|
private |
◆ ConstrainedGroup
◆ ConstraintSolver
◆ mActive
bool dart::constraint::ContactConstraint::mActive |
|
private |
◆ mAppliedImpulseIndex
std::size_t dart::constraint::ContactConstraint::mAppliedImpulseIndex |
|
private |
Index of applied impulse.
◆ mBodyNodeA
◆ mBodyNodeB
◆ mConstraintForceMixing
double dart::constraint::ContactConstraint::mConstraintForceMixing = 1e-5 |
|
staticprivate |
◆ mContact
Contact between mBodyNode1 and mBodyNode2.
◆ mDim
std::size_t dart::constraint::ConstraintBase::mDim |
|
protectedinherited |
◆ mErrorAllowance
double dart::constraint::ContactConstraint::mErrorAllowance = 0.0 |
|
staticprivate |
Global constraint error allowance.
◆ mErrorReductionParameter
double dart::constraint::ContactConstraint::mErrorReductionParameter = 0.01 |
|
staticprivate |
Global constraint error redection parameter in the range of [0, 1].
The default is 0.01.
◆ mFirstFrictionalDirection
Eigen::Vector3d dart::constraint::ContactConstraint::mFirstFrictionalDirection |
|
private |
First frictional direction.
◆ mFrictionCoeff
double dart::constraint::ContactConstraint::mFrictionCoeff |
|
private |
◆ mIsBounceOn
bool dart::constraint::ContactConstraint::mIsBounceOn |
|
private |
◆ mIsFrictionOn
bool dart::constraint::ContactConstraint::mIsFrictionOn |
|
private |
◆ mIsSelfCollision
bool dart::constraint::ContactConstraint::mIsSelfCollision |
|
private |
Whether this contact is self-collision.
◆ mMaxErrorReductionVelocity
double dart::constraint::ContactConstraint::mMaxErrorReductionVelocity = 1e-3 |
|
staticprivate |
Maximum error reduction velocity.
◆ mRestitutionCoeff
double dart::constraint::ContactConstraint::mRestitutionCoeff |
|
private |
Coefficient of restitution.
◆ mSpatialNormalA
Eigen::Matrix<double, 6, Eigen::Dynamic> dart::constraint::ContactConstraint::mSpatialNormalA |
|
private |
Local body jacobians for mBodyNode1.
◆ mSpatialNormalB
Eigen::Matrix<double, 6, Eigen::Dynamic> dart::constraint::ContactConstraint::mSpatialNormalB |
|
private |
Local body jacobians for mBodyNode2.
◆ mTimeStep
double dart::constraint::ContactConstraint::mTimeStep |
|
private |