Skip to content

raisim::Shape ​

namespace

Geometry shape types.

Enumerations ​

Type ​

#include <raisim/object/ArticulatedSystem/JointAndBodies.hpp>

cpp
enum Type : int

Shape type. Articulated-system collision bodies support Box, Cylinder, Sphere, Mesh, Capsule and Ground.

EnumeratorValue
Box0
Cylinder
Sphere
Mesh
Capsule
Cone
Ground
CoordinateFrame
Arrow
RotationalArrow
HeightMap
PolyLine
SingleLine
NotShape

Functions ​

stringToShape ​

#include <raisim/object/ArticulatedSystem/JointAndBodies.hpp>

cpp
Shape::Type stringToShape(const std::string &shape)

Parameters

ParameterDescription
shape (in)"mesh", "sphere", "capsule", "cylinder", "box" or "plane" (Ground)

Returns the corresponding shape type, or NotShape for any other string

RaiSim — physics for robotics and AI.