See Foxglove Schemas documentation.
All schemas are generated from schemas.ts.
- enum LineType
- enum LogLevel
- enum NumericType
- enum PointsAnnotationType
- enum PositionCovarianceType
- enum SceneEntityDeletionType
- ArrowPrimitive
- CameraCalibration
- CircleAnnotation
- Color
- CompressedImage
- CompressedVideo
- CubePrimitive
- CylinderPrimitive
- FrameTransform
- FrameTransforms
- GeoJSON
- Grid
- ImageAnnotations
- KeyValuePair
- LaserScan
- LinePrimitive
- LocationFix
- Log
- ModelPrimitive
- PackedElementField
- Point2
- Point3
- PointCloud
- PointsAnnotation
- Pose
- PoseInFrame
- PosesInFrame
- Quaternion
- RawImage
- SceneEntity
- SceneEntityDeletion
- SceneUpdate
- SpherePrimitive
- TextAnnotation
- TextPrimitive
- TriangleListPrimitive
- Vector2
- Vector3
An enumeration indicating how input points should be interpreted to create lines
name | value | description |
---|---|---|
LINE_STRIP |
0 | Connected line segments: 0-1, 1-2, ..., (n-1)-n |
LINE_LOOP |
1 | Closed polygon: 0-1, 1-2, ..., (n-1)-n, n-0 |
LINE_LIST |
2 | Individual line segments: 0-1, 2-3, 4-5, ... |
Log level
name | value | description |
---|---|---|
UNKNOWN |
0 | |
DEBUG |
1 | |
INFO |
2 | |
WARNING |
3 | |
ERROR |
4 | |
FATAL |
5 |
Numeric type
name | value | description |
---|---|---|
UNKNOWN |
0 | |
UINT8 |
1 | |
INT8 |
2 | |
UINT16 |
3 | |
INT16 |
4 | |
UINT32 |
5 | |
INT32 |
6 | |
FLOAT32 |
7 | |
FLOAT64 |
8 |
Type of points annotation
name | value | description |
---|---|---|
UNKNOWN |
0 | |
POINTS |
1 | Individual points: 0, 1, 2, ... |
LINE_LOOP |
2 | Closed polygon: 0-1, 1-2, ..., (n-1)-n, n-0 |
LINE_STRIP |
3 | Connected line segments: 0-1, 1-2, ..., (n-1)-n |
LINE_LIST |
4 | Individual line segments: 0-1, 2-3, 4-5, ... |
Type of position covariance
name | value | description |
---|---|---|
UNKNOWN |
0 | |
APPROXIMATED |
1 | |
DIAGONAL_KNOWN |
2 | |
KNOWN |
3 |
An enumeration indicating which entities should match a SceneEntityDeletion command
name | value | description |
---|---|---|
MATCHING_ID |
0 | Delete the existing entity on the same topic that has the provided id |
ALL |
1 | Delete all existing entities on the same topic |
A primitive representing an arrow
field | type | description |
---|---|---|
pose |
Position of the arrow's tail and orientation of the arrow. Identity orientation means the arrow points in the +x direction. |
|
shaft_length |
float64 |
Length of the arrow shaft |
shaft_diameter |
float64 |
Diameter of the arrow shaft |
head_length |
float64 |
Length of the arrow head |
head_diameter |
float64 |
Diameter of the arrow head |
color |
Color of the arrow |
Camera calibration parameters
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of calibration data |
frame_id |
string |
Frame of reference for the camera. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image. |
width |
uint32 |
Image width |
height |
uint32 |
Image height |
distortion_model |
string |
Name of distortion model Supported parameters: |
D |
float64[] |
Distortion parameters |
K |
float64[9] |
Intrinsic camera matrix (3x3 row-major matrix) A 3x3 row-major matrix for the raw (distorted) image. Projects 3D points in the camera coordinate frame to 2D pixel coordinates using the focal lengths (fx, fy) and principal point (cx, cy).
|
R |
float64[9] |
Rectification matrix (stereo cameras only, 3x3 row-major matrix) A rotation matrix aligning the camera coordinate system to the ideal stereo image plane so that epipolar lines in both stereo images are parallel. |
P |
float64[12] |
Projection/camera matrix (3x4 row-major matrix)
By convention, this matrix specifies the intrinsic (camera) matrix of the processed (rectified) image. That is, the left 3x3 portion is the normal camera intrinsic matrix for the rectified image. It projects 3D points in the camera coordinate frame to 2D pixel coordinates using the focal lengths (fx', fy') and principal point (cx', cy') - these may differ from the values in K. For monocular cameras, Tx = Ty = 0. Normally, monocular cameras will also have R = the identity and P[1:3,1:3] = K. For a stereo pair, the fourth column [Tx Ty 0]' is related to the position of the optical center of the second camera in the first camera's frame. We assume Tz = 0 so both cameras are in the same stereo image plane. The first camera always has Tx = Ty = 0. For the right (second) camera of a horizontal stereo pair, Ty = 0 and Tx = -fx' * B, where B is the baseline between the cameras. Given a 3D point [X Y Z]', the projection (x, y) of the point onto the rectified image is given by:
This holds for both images of a stereo pair. |
A circle annotation on a 2D image
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of circle |
position |
Center of the circle in 2D image coordinates (pixels) |
|
diameter |
float64 |
Circle diameter in pixels |
thickness |
float64 |
Line thickness in pixels |
fill_color |
Fill color |
|
outline_color |
Outline color |
A color in RGBA format
field | type | description |
---|---|---|
r |
float64 |
Red value between 0 and 1 |
g |
float64 |
Green value between 0 and 1 |
b |
float64 |
Blue value between 0 and 1 |
a |
float64 |
Alpha value between 0 and 1 |
A compressed image
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of image |
frame_id |
string |
Frame of reference for the image. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image. |
data |
bytes |
Compressed image data |
format |
string |
Image format Supported values: image media types supported by Chrome, such as |
A single frame of a compressed video bitstream
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of video frame |
frame_id |
string |
Frame of reference for the video. The origin of the frame is the optical center of the camera. +x points to the right in the video, +y points down, and +z points into the plane of the video. |
data |
bytes |
Compressed video frame data. For packet-based video codecs this data must begin and end on packet boundaries (no partial packets), and must contain enough video packets to decode exactly one image (either a keyframe or delta frame). Note: Foxglove does not support video streams that include B frames because they require lookahead. |
format |
string |
Video format. Supported values: |
A primitive representing a cube or rectangular prism
field | type | description |
---|---|---|
pose |
Position of the center of the cube and orientation of the cube |
|
size |
Size of the cube along each axis |
|
color |
Color of the cube |
A primitive representing a cylinder, elliptic cylinder, or truncated cone
field | type | description |
---|---|---|
pose |
Position of the center of the cylinder and orientation of the cylinder. The flat face(s) are perpendicular to the z-axis. |
|
size |
Size of the cylinder's bounding box |
|
bottom_scale |
float64 |
0-1, ratio of the diameter of the cylinder's bottom face (min z) to the bottom of the bounding box |
top_scale |
float64 |
0-1, ratio of the diameter of the cylinder's top face (max z) to the top of the bounding box |
color |
Color of the cylinder |
A transform between two reference frames in 3D space
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of transform |
parent_frame_id |
string |
Name of the parent frame |
child_frame_id |
string |
Name of the child frame |
translation |
Translation component of the transform |
|
rotation |
Rotation component of the transform |
An array of FrameTransform messages
field | type | description |
---|---|---|
transforms |
Array of transforms |
GeoJSON data for annotating maps
field | type | description |
---|---|---|
geojson |
string |
GeoJSON data encoded as a UTF-8 string |
A 2D grid of data
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of grid |
frame_id |
string |
Frame of reference |
pose |
Origin of grid's corner relative to frame of reference; grid is positioned in the x-y plane relative to this origin |
|
column_count |
uint32 |
Number of grid columns |
cell_size |
Size of single grid cell along x and y axes, relative to |
|
row_stride |
uint32 |
Number of bytes between rows in |
cell_stride |
uint32 |
Number of bytes between cells within a row in |
fields |
Fields in |
|
data |
bytes |
Grid cell data, interpreted using |
Array of annotations for a 2D image
field | type | description |
---|---|---|
circles |
Circle annotations |
|
points |
Points annotations |
|
texts |
Text annotations |
A key with its associated value
field | type | description |
---|---|---|
key |
string |
Key |
value |
string |
Value |
A single scan from a planar laser range-finder
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of scan |
frame_id |
string |
Frame of reference |
pose |
Origin of scan relative to frame of reference; points are positioned in the x-y plane relative to this origin; angles are interpreted as counterclockwise rotations around the z axis with 0 rad being in the +x direction |
|
start_angle |
float64 |
Bearing of first point, in radians |
end_angle |
float64 |
Bearing of last point, in radians |
ranges |
float64[] |
Distance of detections from origin; assumed to be at equally-spaced angles between |
intensities |
float64[] |
Intensity of detections |
A primitive representing a series of points connected by lines
field | type | description |
---|---|---|
type |
Drawing primitive to use for lines |
|
pose |
Origin of lines relative to reference frame |
|
thickness |
float64 |
Line thickness |
scale_invariant |
boolean |
Indicates whether |
points |
Point3[] |
Points along the line |
color |
Solid color to use for the whole line. One of |
|
colors |
Color[] |
Per-point colors (if specified, must have the same length as |
indices |
uint32[] |
Indices into the If omitted or empty, indexing will not be used. This default behavior is equivalent to specifying [0, 1, ..., N-1] for the indices (where N is the number of |
A navigation satellite fix for any Global Navigation Satellite System
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of the message |
frame_id |
string |
Frame for the sensor. Latitude and longitude readings are at the origin of the frame. |
latitude |
float64 |
Latitude in degrees |
longitude |
float64 |
Longitude in degrees |
altitude |
float64 |
Altitude in meters |
position_covariance |
float64[9] |
Position covariance (m^2) defined relative to a tangential plane through the reported position. The components are East, North, and Up (ENU), in row-major order. |
position_covariance_type |
If |
A log message
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of log message |
level |
Log level |
|
message |
string |
Log message |
name |
string |
Process or node name |
file |
string |
Filename |
line |
uint32 |
Line number in the file |
A primitive representing a 3D model file loaded from an external URL or embedded data
field | type | description |
---|---|---|
pose |
Origin of model relative to reference frame |
|
scale |
Scale factor to apply to the model along each axis |
|
color |
Solid color to use for the whole model if |
|
override_color |
boolean |
Whether to use the color specified in |
url |
string |
URL pointing to model file. One of |
media_type |
string |
Media type of embedded model (e.g. |
data |
bytes |
Embedded model. One of |
A field present within each element in a byte array of packed elements.
field | type | description |
---|---|---|
name |
string |
Name of the field |
offset |
uint32 |
Byte offset from start of data buffer |
type |
Type of data in the field. Integers are stored using little-endian byte order. |
A point representing a position in 2D space
field | type | description |
---|---|---|
x |
float64 |
x coordinate position |
y |
float64 |
y coordinate position |
A point representing a position in 3D space
field | type | description |
---|---|---|
x |
float64 |
x coordinate position |
y |
float64 |
y coordinate position |
z |
float64 |
z coordinate position |
A collection of N-dimensional points, which may contain additional fields with information like normals, intensity, etc.
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of point cloud |
frame_id |
string |
Frame of reference |
pose |
The origin of the point cloud relative to the frame of reference |
|
point_stride |
uint32 |
Number of bytes between points in the |
fields |
Fields in |
|
data |
bytes |
Point data, interpreted using |
An array of points on a 2D image
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of annotation |
type |
Type of points annotation to draw |
|
points |
Point2[] |
Points in 2D image coordinates (pixels) |
outline_color |
Outline color |
|
outline_colors |
Color[] |
Per-point colors, if |
fill_color |
Fill color |
|
thickness |
float64 |
Stroke thickness in pixels |
A position and orientation for an object or reference frame in 3D space
field | type | description |
---|---|---|
position |
Point denoting position in 3D space |
|
orientation |
Quaternion denoting orientation in 3D space |
A timestamped pose for an object or reference frame in 3D space
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of pose |
frame_id |
string |
Frame of reference for pose position and orientation |
pose |
Pose in 3D space |
An array of timestamped poses for an object or reference frame in 3D space
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of pose |
frame_id |
string |
Frame of reference for pose position and orientation |
poses |
Pose[] |
Poses in 3D space |
A quaternion representing a rotation in 3D space
field | type | description |
---|---|---|
x |
float64 |
x value |
y |
float64 |
y value |
z |
float64 |
z value |
w |
float64 |
w value |
A raw image
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of image |
frame_id |
string |
Frame of reference for the image. The origin of the frame is the optical center of the camera. +x points to the right in the image, +y points down, and +z points into the plane of the image. |
width |
uint32 |
Image width |
height |
uint32 |
Image height |
encoding |
string |
Encoding of the raw image data Supported values: |
step |
uint32 |
Byte length of a single row |
data |
bytes |
Raw image data |
A visual element in a 3D scene. An entity may be composed of multiple primitives which all share the same frame of reference.
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of the entity |
frame_id |
string |
Frame of reference |
id |
string |
Identifier for the entity. A entity will replace any prior entity on the same topic with the same |
lifetime |
duration |
Length of time (relative to |
frame_locked |
boolean |
Whether the entity should keep its location in the fixed frame (false) or follow the frame specified in |
metadata |
Additional user-provided metadata associated with the entity. Keys must be unique. |
|
arrows |
Arrow primitives |
|
cubes |
Cube primitives |
|
spheres |
Sphere primitives |
|
cylinders |
Cylinder primitives |
|
lines |
Line primitives |
|
triangles |
Triangle list primitives |
|
texts |
Text primitives |
|
models |
Model primitives |
Command to remove previously published entities
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of the deletion. Only matching entities earlier than this timestamp will be deleted. |
type |
Type of deletion action to perform |
|
id |
string |
Identifier which must match if |
An update to the entities displayed in a 3D scene
field | type | description |
---|---|---|
deletions |
Scene entities to delete |
|
entities |
Scene entities to add or replace |
A primitive representing a sphere or ellipsoid
field | type | description |
---|---|---|
pose |
Position of the center of the sphere and orientation of the sphere |
|
size |
Size (diameter) of the sphere along each axis |
|
color |
Color of the sphere |
A text label on a 2D image
field | type | description |
---|---|---|
timestamp |
time |
Timestamp of annotation |
position |
Bottom-left origin of the text label in 2D image coordinates (pixels) |
|
text |
string |
Text to display |
font_size |
float64 |
Font size in pixels |
text_color |
Text color |
|
background_color |
Background fill color |
A primitive representing a text label
field | type | description |
---|---|---|
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 |
font_size |
float64 |
Font size (height of one line of text) |
scale_invariant |
boolean |
Indicates whether |
color |
Color of the text |
|
text |
string |
Text |
A primitive representing a set of triangles or a surface tiled by triangles
field | type | description |
---|---|---|
pose |
Origin of triangles relative to reference frame |
|
points |
Point3[] |
Vertices to use for triangles, interpreted as a list of triples (0-1-2, 3-4-5, ...) |
color |
Solid color to use for the whole shape. One of |
|
colors |
Color[] |
Per-vertex colors (if specified, must have the same length as |
indices |
uint32[] |
Indices into the If omitted or empty, indexing will not be used. This default behavior is equivalent to specifying [0, 1, ..., N-1] for the indices (where N is the number of |
A vector in 2D space that represents a direction only
field | type | description |
---|---|---|
x |
float64 |
x coordinate length |
y |
float64 |
y coordinate length |
A vector in 3D space that represents a direction only
field | type | description |
---|---|---|
x |
float64 |
x coordinate length |
y |
float64 |
y coordinate length |
z |
float64 |
z coordinate length |