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
| Field | Type | Description |
|---|---|---|
| x | float64 | x coordinate length |
| y | float64 | y coordinate length |
Reference Implementation
The visualization data structure is framework-independent and can be implemented using any supported message encoding:
| Encoding | Data Structure |
|---|---|
| ROS 1 | foxglove_msgs/Vector2 |
| ROS 2 | foxglove_msgs/msg/Vector2 |
| JSON | foxglove.Vector2 |
| Protobuf | foxglove.Vector2 |
| FlatBuffers | foxglove.Vector2 |
| OMG IDL | foxglove::Vector2 |
You must use the data structure names specified above for the visualization to recognize the data structure.