raisim::RuntimeJoint
class · #include <raisim/constraints/RuntimeJoint.hpp>
A world-owned joint connecting rigid bodies, articulated links, or the world.
Nested classes
structAttachment — Joint frame in the local body frame; a null object specifies a world frame.structProperties
Public types
Type
cpp
enum class Type| Enumerator |
|---|
Fixed |
Ball |
Hinge |
Slider |
Constructors & destructor
RuntimeJoint
cpp
RuntimeJoint(const RuntimeJoint &) = deletePublic member functions
operator=
cpp
RuntimeJoint &operator=(const RuntimeJoint &) = deletegetName
cpp
const std::string &getName() constgetType
cpp
Type getType() constgetAttachmentA
cpp
const Attachment &getAttachmentA() constgetAttachmentB
cpp
const Attachment &getAttachmentB() constgetProperties
cpp
const Properties &getProperties() constsetProperties
cpp
void setProperties(const Properties &properties)Changes are permitted only between complete integration steps.
setEnabled
cpp
void setEnabled(bool enabled)isEnabled
cpp
bool isEnabled() constisBroken
cpp
bool isBroken() constresetBreakage
cpp
void resetBreakage()Clears breakage and wakes the connected bodies; preserves the enabled flag.
getForce
cpp
const Vec<3> &getForce() constForce 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