Standard types

Rant comes with types for common data, so two programs that both mean "a pose" use the same name and the same bytes. Every name below works in any schema, as a topic type or as a field:

Waypoint { at: Transform, when: Timestamp, tag: Color }

Open a type to see its fields and their units.

Units and frames

  • Physical values are SI: meters, seconds, newtons and radians.
  • A 3D frame is right handed with z up. A 2D frame is its top view: x right, y up.
  • An image frame starts at the top left corner: x right, y down, in pixels.
  • An angle turns from +x toward +y.
  • m or px means meters in a physical frame and pixels in an image frame.
  • Time is in microseconds (us). A Timestamp counts from the Unix epoch in UTC.

Vectors and matrices

Float2A 2D vector of f32
FieldType
xf32
yf32
Float3A 3D vector of f32
FieldType
xf32
yf32
zf32
Float4A 4D vector of f32
FieldType
xf32
yf32
zf32
wf32
Double2A 2D vector of f64
FieldType
xf64
yf64
Double3A 3D vector of f64
FieldType
xf64
yf64
zf64
Double4A 4D vector of f64
FieldType
xf64
yf64
zf64
wf64
Int2A 2D vector of i32, such as a pixel or a grid cell
FieldType
xi32
yi32
Int3A 3D vector of i32
FieldType
xi32
yi32
zi32
Int4A 4D vector of i32
FieldType
xi32
yi32
zi32
wi32
Matrix3x3A 3 by 3 matrix, indexed row then column
Type
f32[3][3]
Matrix4x4A 4 by 4 matrix, indexed row then column
Type
f32[4][4]
Covariance3The covariance of three values, indexed row then column, in their units squared
Type
f64[3][3]
Covariance6The covariance of a 3D pose or twist, indexed row then column

The order is x, y and z, then the turn about x, y and z

Type
f64[6][6]

Position and orientation

PoseA position and orientation in a 3D frame
FieldTypeUnit
positionDouble3m
orientationQuaternion
Pose2DA position and heading in a 2D frame, the top view of a Pose
FieldTypeUnitNote
positionDouble2m or px
anglef64radfrom +x toward +y
TransformA Pose and the frame it is measured in
FieldTypeNote
posePose
parentstring<30>the parent frame, empty when unstated
Transform2DA Pose2D and the frame it is measured in
FieldTypeNote
posePose2D
parentstring<30>the parent frame, empty when unstated
QuaternionA 3D rotation as a unit quaternion, stored x, y, z, w
FieldType
xf64
yf64
zf64
wf64
GeoPointA point on the Earth
FieldTypeUnitNote
latf64deglatitude
lonf64deglongitude
altf64maltitude
PoseWithCovarianceA Pose and how uncertain it is
FieldTypeUnitNote
posePose
covarianceCovariance6m^2 and rad^2the position, then the rotation about x, y and z

Motion and force

TwistLinear and angular velocity in 3D
FieldTypeUnitNote
linearDouble3m/s
angularDouble3rad/sabout each axis
Twist2DLinear and angular velocity in 2D
FieldTypeUnitNote
linearDouble2m/s
angularf64rad/sfrom +x toward +y
AccelLinear and angular acceleration in 3D
FieldTypeUnitNote
linearDouble3m/s^2
angularDouble3rad/s^2about each axis
Accel2DLinear and angular acceleration in 2D
FieldTypeUnitNote
linearDouble2m/s^2
angularf64rad/s^2from +x toward +y
WrenchA force and a torque in 3D
FieldTypeUnitNote
forceDouble3N
torqueDouble3N mabout the frame origin
Wrench2DA force and a torque in 2D
FieldTypeUnitNote
forceDouble2N
torquef64N mfrom +x toward +y
TwistWithCovarianceA Twist and how uncertain it is
FieldTypeUnitNote
twistTwist
covarianceCovariance6m^2/s^2 and rad^2/s^2the linear part, then the angular
OdometryWhere a moving body is and how fast it moves, as dead reckoning estimates it
FieldTypeNote
posePoseWithCovariancethe body in the parent frame
twistTwistWithCovariancein the body's own frame
parentstring<30>the frame pose is measured in, empty when unstated

3D shapes

AlignedBoxA box along the frame axes
FieldTypeUnitNote
minDouble3mthe corner with the lowest x, y and z
maxDouble3mthe opposite corner
OrientedBoxA box at any orientation
FieldTypeUnitNote
posePosethe center and orientation
sizeDouble3mthe full edge lengths
PlaneAn endless flat plane
FieldTypeUnitNote
positionDouble3many point on the plane
normalDouble3unit length
SegmentA straight line between two points
FieldTypeUnit
aDouble3m
bDouble3m
RayA straight line from a point, endless in one direction
FieldTypeUnitNote
originDouble3m
directionDouble3unit length, away from origin
SphereA ball around a center point
FieldTypeUnit
centerDouble3m
radiusf64m
CapsuleA cylinder with rounded ends
FieldTypeUnitNote
axisSegmentthe centers of the rounded ends
radiusf64m
CylinderA cylinder with flat ends
FieldTypeUnitNote
axisSegmentthe centers of the flat ends
radiusf64m
ConeA cone from a round base to a tip
FieldTypeUnitNote
baseDouble3mthe center of the base
tipDouble3m
radiusf64mat the base
PolygonA closed flat polygon in 3D
FieldTypeUnitNote
pointsDouble3[]mthe corners in order
PrismA flat polygon raised to a height, such as a zone of a floor
FieldTypeUnitNote
posePosethe frame the base lies in
basePolygon2Dmin the xy plane of pose
heightf64malong +z of pose
PolylineAn open line through points in order
FieldTypeUnit
pointsDouble3[]m
PathA route of poses to follow in order
FieldType
posesPose[]

2D shapes

AlignedBox2DA rectangle along the frame axes, also a region of an image
FieldTypeUnitNote
minDouble2m or pxthe corner with the lowest x and y
maxDouble2m or pxthe opposite corner
OrientedBox2DA rectangle at any angle
FieldTypeUnitNote
posePose2Dthe center and angle
sizeDouble2m or pxthe full edge lengths
Plane2DAn endless line, the 2D form of a Plane
FieldTypeUnitNote
positionDouble2m or pxany point on the line
normalDouble2unit length
Segment2DA straight line between two points in 2D
FieldTypeUnit
aDouble2m or px
bDouble2m or px
Ray2DA straight line from a point, endless in one direction, in 2D
FieldTypeUnitNote
originDouble2m or px
directionDouble2unit length, away from origin
CircleA circle around a center point
FieldTypeUnit
centerDouble2m or px
radiusf64m or px
Capsule2DA rectangle with rounded ends
FieldTypeUnitNote
axisSegment2Dthe centers of the rounded ends
radiusf64m or px
Polygon2DA closed polygon in 2D
FieldTypeUnitNote
pointsDouble2[]m or pxthe corners in order
Polyline2DAn open line through points in order in 2D
FieldTypeUnit
pointsDouble2[]m or px
Path2DA route of 2D poses to follow in order
FieldType
posesPose2D[]

Sensors

CameraIntrinsicsThe pinhole model of a camera and its lens distortion
FieldTypeUnitNote
widthu32pxthe resolution these values hold for
heightu32px
fxf64pxfocal length along x
fyf64pxfocal length along y
cxf64pxprincipal point x
cyf64pxprincipal point y
coeffsf64[8]OpenCV's order: k1 k2 p1 p2 k3, then k4 k5 k6 for Rational, or k1 to k4 for Fisheye, 0 past that
modelDistortionModelthe lens distortion model
DistortionModelA lens distortion model
OptionValueNote
None0an ideal pinhole
BrownConrady1
Fisheye2
Rational3
ImuOne reading of an inertial measurement unit, in its own frame

A covariance with -1 first means that value is not measured

FieldTypeUnitNote
orientationQuaternion
orientation_covarianceCovariance3rad^2about x, y and z
angular_velocityDouble3rad/sabout each axis
angular_velocity_covarianceCovariance3rad^2/s^2
linear_accelerationDouble3m/s^2gravity included
linear_acceleration_covarianceCovariance3m^2/s^4
LaserScanOne sweep of a planar range sensor, its beams turning from +x toward +y
FieldTypeUnitNote
angle_minf32radthe first beam
angle_stepf32radfrom one beam to the next
time_stepf32sfrom one beam to the next, 0 when unstated
range_minf32ma shorter range is not valid
range_maxf32ma longer range is not valid
echoesu8the ranges per beam, 0 reads as 1
rangesf32[]meach beam's echoes together, +inf when nothing returns
intensitiesf32[]in the order of ranges, may be empty
RangeReadingOne distance from a sensor with a single beam or cone along its +x
FieldTypeUnitNote
distancef64m+inf when nothing is in range
minf64mthe shortest distance it reads
maxf64mthe longest distance it reads
field_of_viewf64radthe full angle of the cone
kindRangeKind
RangeKindWhat a range sensor measures with
OptionValueNote
Unknown0unstated
Ultrasound1
Infrared2
Laser3
Radar4
GnssFixA position from satellite navigation
FieldTypeUnitNote
positionGeoPoint
covarianceCovariance3m^2east, north and up
statusGnssStatus
GnssStatusThe quality of a satellite position fix
OptionValueNote
NoFix0the position is not valid
Fix1satellites alone
Differential2corrected by SBAS or DGPS
RtkFloat3RTK, ambiguities not yet resolved
RtkFixed4RTK, centimeter level
Detection2DAn object found in an image or a 2D frame
FieldTypeNote
boundsOrientedBox2Dwhere it is
labelstringwhat it is
scoref32the confidence, 0 to 1
tracku32the same id in every frame, 0 when not tracked
Detection3DAn object found in a 3D frame
FieldTypeNote
boundsOrientedBoxwhere it is
labelstringwhat it is
scoref32the confidence, 0 to 1
tracku32the same id in every frame, 0 when not tracked

Robots

JointStateThe joints of a robot, in the order of its JointNames
FieldTypeUnitNote
positionf64[]rad or mrad for a turning joint, m for a sliding one
velocityf64[]rad/s or m/smay be empty
effortf64[]N m or Nmay be empty
JointNamesThe joint names a JointState follows, published once
FieldType
namestring[]
JointTrajectoryA motion of the joints over time
FieldTypeNote
pointsJointTrajectoryPoint[]in time order
JointTrajectoryPointWhere the joints should be at one time, in the order of their JointNames
FieldTypeUnitNote
timeDurationusfrom the start of the trajectory
positionf64[]rad or m
velocityf64[]rad/s or m/smay be empty
accelerationf64[]rad/s^2 or m/s^2may be empty
effortf64[]N m or Nmay be empty
InertiaThe mass of a rigid body and how it resists turning
FieldTypeUnitNote
massf64kg
centerDouble3mthe center of mass in the body frame
ixxf64kg m^2about the center of mass
ixyf64kg m^2
ixzf64kg m^2
iyyf64kg m^2
iyzf64kg m^2
izzf64kg m^2

Point clouds, meshes and grids

PointCloudPoints with any values each, packed one point after another as in PCL
FieldTypeUnitNote
originTransformthe frame the points are in
widthu32points per row when the cloud is an image, 0 when it has no rows
fieldsPointField[]what each point holds
point_stepu32bytesfrom one point to the next
denseboolno point holds an invalid value
datau8[]the points, little endian
PointFieldOne value that every point of a PointCloud holds
FieldTypeUnitNote
namestringsuch as x, y, z, intensity or rgb
offsetu32bytesfrom the start of the point
kindScalarKind
countu32the numbers in a row, 1 for a single number
MeshA surface of triangles
FieldTypeNote
verticesPointCloudthe corners, with x, y and z among their fields
trianglesu32[]three vertex indices each, counterclockwise seen from outside
GridA 2D or 3D grid of cells with any values each, such as a map
FieldTypeUnitNote
originTransformthe frame, and the pose of the outer corner of cell 0
resolutionf64mthe edge of a cell
cells_xu32cells along x
cells_yu32cells along y
cells_zu32cells along z, 1 for a 2D grid
fieldsGridField[]what each cell holds
GridFieldOne value that every cell of a Grid holds
FieldTypeNote
namestringsuch as occupancy, height or cost, or rgba or rgb for a color as a PointField packs it
kindScalarKind
datau8[]one number per cell, x fastest, then y, then z, little endian
ScalarKindThe kind of number in a block of raw data, numbered as in PCL
OptionValue
I81
U82
I163
U164
I325
U326
F327
F648
I649
U6410
TensorAn array of numbers with any number of dimensions
FieldTypeNote
kindScalarKind
shapeu32[]the size of each dimension, outermost first
datau8[]the numbers, last dimension fastest, little endian

Images and video

ImageA picture, as raw pixels or a compressed file
FieldTypeUnitNote
widthu32px
heightu32px
strideu32bytesfrom one row to the next, 0 when rows are packed
formatImageFormathow data is laid out
datau8[]the pixels from the top row, or the file
ImageFormatHow the data of an Image is laid out, 16 and up a compressed file
OptionValueNote
Mono80one 8 bit channel
Mono161one 16 bit channel
Rgb82red, green and blue, 8 bits each
Rgba83red, green, blue and alpha, 8 bits each
Bgr84blue, green and red, 8 bits each
Yuyv5YUV 4:2:2, two pixels in four bytes
Nv126YUV 4:2:0, a Y plane then interleaved U and V
Monof327one 32 bit float channel
Jpeg16data is a JPEG file
Png17data is a PNG file
VideoFrameOne encoded frame of a video stream
FieldTypeUnitNote
codecVideoCodecthe bitstream format
widthu32pxthe coded size, 0 when unstated
heightu32pxthe coded size, 0 when unstated
keyframebooldecodes without earlier frames
ptsTimestampuswhen to show the frame
datau8[]the encoded bitstream
VideoCodecThe format of a video bitstream
OptionValueNote
Unknown0unstated
Mjpeg1
H2642
H2653
Av14
ExternalVideoStreamWhere to watch a video stream, so a viewer connects to it directly
FieldTypeUnitNote
widthu32pxa hint, 0 when unstated
heightu32pxa hint, 0 when unstated
kindVideoStreamKindthe protocol of url
codecVideoCodeca hint, Unknown when unstated
urlUrithe stream address
namestring<30>a label for the stream
VideoStreamKindThe protocol a video stream is served over
OptionValueNote
Rtsp0
WebrtcWhep1WebRTC set up over WHEP
Hls2
Srt3
Rtp4
HttpMjpeg5MJPEG over HTTP
Other15

Time and ids

TimestampA moment in time, counted from the Unix epoch in UTC
TypeUnit
i64us
DurationA length of time
TypeUnit
i64us
UuidA 16 byte unique id
TypeNote
u8[16]RFC 4122 byte order

Other

ColorAn sRGB color with straight alpha, not premultiplied
FieldTypeNote
ru8
gu8
bu8
au8255 is opaque
UriA URL or other URI
Type
string<256>
FileA whole file
FieldTypeNote
namestringthe file name with its extension
media_typestring<64>such as image/png, empty when unknown
datau8[]the file bytes
EmptyNo data, for a signal such as a trigger

No fields.