Skip to content

raisim::RuntimeJoint ​

class · #include <raisim/constraints/RuntimeJoint.hpp>

A world-owned joint connecting rigid bodies, articulated links, or the world.

Nested classes ​

  • struct Attachment — Joint frame in the local body frame; a null object specifies a world frame.
  • struct Properties

Public types ​

Type ​

cpp
enum class Type
Enumerator
Fixed
Ball
Hinge
Slider

Constructors & destructor ​

RuntimeJoint ​

cpp
RuntimeJoint(const RuntimeJoint &) = delete

Public member functions ​

operator= ​

cpp
RuntimeJoint &operator=(const RuntimeJoint &) = delete

getName ​

cpp
const std::string &getName() const

getType ​

cpp
Type getType() const

getAttachmentA ​

cpp
const Attachment &getAttachmentA() const

getAttachmentB ​

cpp
const Attachment &getAttachmentB() const

getProperties ​

cpp
const Properties &getProperties() const

setProperties ​

cpp
void setProperties(const Properties &properties)

Changes are permitted only between complete integration steps.

setEnabled ​

cpp
void setEnabled(bool enabled)

isEnabled ​

cpp
bool isEnabled() const

isBroken ​

cpp
bool isBroken() const

resetBreakage ​

cpp
void resetBreakage()

Clears breakage and wakes the connected bodies; preserves the enabled flag.

getForce ​

cpp
const Vec<3> &getForce() const

Force and pure couple on body A, in world coordinates, averaged over the last step. The opposite loads act on body B. Slider forces act at frame B's origin on both bodies. A break is detected after solving: the breaking step still reports and applies its load.

getTorque ​

cpp
const Vec<3> &getTorque() const

RaiSim — physics for robotics and AI.