Skip to content

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 ​

  • struct Properties — Coupling parameters, validated by setProperties().

Public member functions ​

getName ​

cpp
const std::string &getName() const

Returns the coupling name.

getFirst ​

cpp
Tendon *getFirst() const

Returns the tendon whose length is constrained (L1).

getSecond ​

cpp
Tendon *getSecond() const

Returns the driving tendon (L2), or nullptr. Null fixes the first length.

getProperties ​

cpp
const Properties &getProperties() const

Returns the coupling properties.

setProperties ​

cpp
void setProperties(const Properties &properties)

Replace the coupling properties.

Parameters

ParameterDescription
properties (in)new properties. Throws std::invalid_argument for non-finite coefficients, negative compliance or positionCorrection outside [0, 1].

getForce ​

cpp
double getForce() const

Returns the coupling force applied to the first tendon in the last step.

RaiSim — physics for robotics and AI.