Skip to main content

CubePrimitive

Represents a primitive for a cube or rectangular prism

Parent Data Structure​

CubePrimitive appears in the SceneEntity message data structure.

Data Structure​

FieldTypeDescription
posePosePosition of the cube center and orientation of the cube
sizeVector3Dimensions of the cube along each axis
colorColorColor of the cube

Reference Implementation​

The visualization data structure is framework-independent and can be implemented using any supported message encoding:

EncodingData Structure
ROS 1foxglove_msgs/CubePrimitive
ROS 2foxglove_msgs/msg/CubePrimitive
JSONfoxglove.CubePrimitive
Protobuffoxglove.CubePrimitive
FlatBuffersfoxglove.CubePrimitive
OMG IDLfoxglove::CubePrimitive

You must use the data structure names specified above for the visualization to recognize the data structure.