Skip to content

raisim::World::SingleBodySnapshot ​

struct · #include <raisim/World.hpp>

Snapshot of a single-body object's runtime state and collision properties. It is intended for fast RL reset/randomization workflows between simulation steps.

Public attributes ​

objectId ​

cpp
ObjectId objectId

Stable id of the captured object.

objectType ​

cpp
ObjectType objectType

Object type; restore fails if the target's type differs.

bodyType ​

cpp
BodyType bodyType

Body type (static/kinematic/dynamic).

position ​

cpp
Vec<3> position

Position in the world frame (m).

quaternion ​

cpp
Vec<4> quaternion

Orientation quaternion (w, x, y, z), body to world.

linearVelocity ​

cpp
Vec<3> linearVelocity

Linear velocity in the world frame (m/s).

angularVelocity ​

cpp
Vec<3> angularVelocity

Angular velocity in the world frame (rad/s).

material ​

cpp
std::string material

Collision material name.

collisionGroup ​

cpp
CollisionGroup collisionGroup

Collision group.

collisionMask ​

cpp
CollisionGroup collisionMask

Collision mask.

RaiSim — physics for robotics and AI.