Skip to content

raisim::urdf::UrdfBody ​

struct · #include <raisim/object/ArticulatedSystem/loaders.hpp>

Internal: URDF visual or collision element parsed by LoadFromURDF2.

Constructors & destructor ​

UrdfBody ​

cpp
UrdfBody()

Public attributes ​

shape ​

cpp
Shape::Type shape

Shape type for the URDF visual or collision element.

fileName ​

cpp
std::string fileName

Mesh file name for mesh shapes.

origin ​

cpp
Vec<3> origin

Position offset in link frame.

rot ​

cpp
Mat<3, 3> rot

Orientation offset in link frame.

scale ​

cpp
Vec<3> scale

Per-axis scale for mesh shapes.

param ​

cpp
Vec<4> param

Shape parameters (dimension depends on shape type).

color ​

cpp
raisim::Vec<4> color

RGBA color override.

mat ​

cpp
std::string mat

Visual material name.

collision_mat ​

cpp
std::string collision_mat

Collision material name.

name ​

cpp
std::string name

Body element name.

RaiSim — physics for robotics and AI.