Skip to main content

Vector2

Represents a vector in two-dimensional space that indicates direction only.

Parent Data Structure

Vector2 appears in the Grid message data structure.

Data Structure

FieldTypeDescription
xfloat64x coordinate length
yfloat64y coordinate length

Reference Implementation

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

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

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