raisim::TendonCoupling
class · #include <raisim/constraints/Tendon.hpp>
Constrains the length of one tendon to a polynomial of another tendon's length. Created by World::addTendonCoupling(); the world owns it.
Nested classes
structProperties — Coupling parameters, validated by setProperties().
Public member functions
getName
cpp
const std::string &getName() constReturns the coupling name.
getFirst
cpp
Tendon *getFirst() constReturns the tendon whose length is constrained (L1).
getSecond
cpp
Tendon *getSecond() constReturns the driving tendon (L2), or nullptr. Null fixes the first length.
getProperties
cpp
const Properties &getProperties() constReturns the coupling properties.
setProperties
cpp
void setProperties(const Properties &properties)Replace the coupling properties.
Parameters
| Parameter | Description |
|---|---|
properties (in) | new properties. Throws std::invalid_argument for non-finite coefficients, negative compliance or positionCorrection outside [0, 1]. |
getForce
cpp
double getForce() constReturns the coupling force applied to the first tendon in the last step.