Skip to main content

Timestamp

A timestamp composed of seconds and nanoseconds

Parent schemas

Timestamp appears in the CameraCalibration, CircleAnnotation, CompressedImage, CompressedVideo, FrameTransform, Grid, LaserScan, LocationFix, Log, PointCloud, PointsAnnotation, PoseInFrame, PosesInFrame, RawAudio, RawImage, SceneEntity, SceneEntityDeletion, and TextAnnotation message schemas.

Schema

fieldtypedescription
secuint32The number of seconds since a user-defined epoch
nsecuint32The number of nanoseconds since the sec value
note

Foxglove's Protobuf schemas represent time values with google.protobuf.Timestamp, which uses seconds and nanos fields. However, in user scripts, message converters, and the rest of Foxglove, the values will appear as sec and nsec fields, for consistency with other data formats.

Reference implementations

Foxglove schemas are framework-agnostic, and can be implemented using any supported message encoding:

encodingschema
ROS 1std_msgs/Time
ROS 2builtin_interfaces/msg/Time
JSONfoxglove.Timestamp
Protobufgoogle.protobuf.Timestamp
FlatBuffersfoxglove.Time
OMG IDLfoxglove::Time

You must use the schema names specified above for Foxglove to recognize the schema.