Simbody
|
This constraint consists of one constraint equation that enforces a constant distance between a point on one body and a point on another body. More...
#include <Constraint.h>
This constraint consists of one constraint equation that enforces a constant distance between a point on one body and a point on another body.
This is like connecting them by a rigid, massless rod with ball joints at either end. The constraint is enforced by a force acting along the rod with opposite signs at either end. When positive, this represents tension in the rod pulling the points together; when negative it represents compression keeping the points separated.
SimTK::Constraint::Rod::Rod | ( | MobilizedBody & | body1, |
MobilizedBody & | body2, | ||
Real | defaultLength = 1 |
||
) |
SimTK::Constraint::Rod::Rod | ( | MobilizedBody & | body1, |
const Vec3 & | defaultPoint1, | ||
MobilizedBody & | body2, | ||
const Vec3 & | defaultPoint2, | ||
Real | defaultLength = 1 |
||
) |
Rod& SimTK::Constraint::Rod::setDefaultRodLength | ( | Real | ) |
MobilizedBodyIndex SimTK::Constraint::Rod::getBody1MobilizedBodyIndex | ( | ) | const |
MobilizedBodyIndex SimTK::Constraint::Rod::getBody2MobilizedBodyIndex | ( | ) | const |
const Vec3& SimTK::Constraint::Rod::getDefaultPointOnBody1 | ( | ) | const |
const Vec3& SimTK::Constraint::Rod::getDefaultPointOnBody2 | ( | ) | const |
Real SimTK::Constraint::Rod::getDefaultRodLength | ( | ) | const |
Real SimTK::Constraint::Rod::getRodLength | ( | const State & | ) | const |
Real SimTK::Constraint::Rod::getPositionError | ( | const State & | ) | const |
Real SimTK::Constraint::Rod::getVelocityError | ( | const State & | ) | const |
Real SimTK::Constraint::Rod::getAccelerationError | ( | const State & | ) | const |
Real SimTK::Constraint::Rod::getMultiplier | ( | const State & | ) | const |
Real SimTK::Constraint::Rod::getRodTension | ( | const State & | ) | const |
SimTK::Constraint::Rod::SimTK_INSERT_DERIVED_HANDLE_DECLARATIONS | ( | Rod | , |
RodImpl | , | ||
Constraint | |||
) |