Skip to main content

CylinderPrimitive

Represents a primitive for a cylinder, elliptical cylinder, or truncated cone.

Parent Data Structure​

CylinderPrimitive appears in the SceneEntity message data structure.

Data Structure​

FieldTypeDescription
posePosePosition of the cylinder center and orientation of the cylinder. Planes (faces) are perpendicular to the z axis.
sizeVector3Size of the cylinder's bounding box
bottom_scalefloat640-1, ratio of the cylinder bottom face (minimum z value) diameter to the bottom of the bounding box
top_scalefloat640-1, ratio of the cylinder top face (maximum z value) diameter to the top of the bounding box
colorColorColor of the cylinder

Reference Implementation​

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

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

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