TextPrimitive
A primitive representing a text label.
Parent schema
TextPrimitive
appears in the SceneEntity
message schema.
Schema
Field | Type | Description |
---|---|---|
pose | pose | Position of the center of the text box and orientation of the text. Identity orientation means the text is oriented in the xy-plane and flows from -x to +x. |
billboard | boolean | Whether the text should respect pose.orientation (false ) or always face the camera (true ). |
font_size | float64 | Font size (height of one line of text). |
scale_invariant | boolean | Indicates whether font_size is a fixed size in screen pixels (true ), or specified in world coordinates and scales with distance from the camera (false ). |
color | Color | Color of the text. |
text | string | Text content. |
Reference implementations
Foxglove schemas are framework-agnostic and can be implemented using any supported message encoding:
Encoding | Schema |
---|---|
ROS 1 | foxglove_msgs/TextPrimitive |
ROS 2 | foxglove_msgs/msg/TextPrimitive |
JSON | foxglove.TextPrimitive |
Protobuf | foxglove.TextPrimitive |
FlatBuffers | foxglove.TextPrimitive |
OMG IDL | foxglove::TextPrimitive |