Skip to content

raisim::rscene::Wire ​

struct · #include <raisim/Rscene.hpp>

A distance constraint between two bodies (wire record), added with World::addSpatialTendon() as Engine 2 does.

Public attributes ​

path ​

cpp
std::string path

kind ​

cpp
std::string kind

"stiff" (upper length limit), "compliant" (spring up to the length) or "custom" (slack).

bodyA ​

cpp
std::string bodyA

The two bodies, by object id or path.

bodyB ​

cpp
std::string bodyB

localIndexA ​

cpp
int localIndexA

Local body indices and attachment points (m).

localIndexB ​

cpp
int localIndexB

localPositionA ​

cpp
Vec3 localPositionA

localPositionB ​

cpp
Vec3 localPositionB

length ​

cpp
double length

Length (m), stiffness (N/m), damping and limit compliance.

stiffness ​

cpp
double stiffness

damping ​

cpp
double damping

compliance ​

cpp
double compliance

visualizationWidth ​

cpp
double visualizationWidth

Drawn width (m); zero hides the wire.

RaiSim — physics for robotics and AI.