Skip to main content

Quaternion

Represents a quaternion for rotation in three-dimensional space

Parent Data Structure​

Quaternion appears in the FrameTransform and Pose message data structures.

Data Structure​

FieldTypeDescription
xfloat64x value
yfloat64y value
zfloat64z value
wfloat64w value

Reference Implementation​

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

EncodingData Structure
ROS 1geometry_msgs/Quaternion
ROS 2geometry_msgs/msg/Quaternion
JSONfoxglove.Quaternion
Protobuffoxglove.Quaternion
FlatBuffersfoxglove.Quaternion
OMG IDLfoxglove::Quaternion

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