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
field | type | description |
---|---|---|
sec | uint32 | The number of seconds since a user-defined epoch |
nsec | uint32 | The number of nanoseconds since the sec value |
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:
encoding | schema |
---|---|
ROS 1 | std_msgs/Time |
ROS 2 | builtin_interfaces/msg/Time |
JSON | foxglove.Timestamp |
Protobuf | google.protobuf.Timestamp |
FlatBuffers | foxglove.Time |
OMG IDL | foxglove::Time |
You must use the schema names specified above for Foxglove to recognize the schema.