Skip to main content

SpherePrimitive

A primitive representing a sphere or ellipsoid

Parent Data Structure

SpherePrimitive appears in the SceneEntity message data structure.

Data Structure

FieldTypeDescription
poseposePosition and orientation of the sphere center
sizeVector3Size of the sphere along each axis (diameter)
colorcolorColor of the sphere

Reference Implementation

Visualization data structures are framework-agnostic and can be implemented using any supported message encoding:

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

You must use the data structure names specified above so that visualizations can recognize the data structure.