raillabel.format.sensor_reference module¶
- class raillabel.format.sensor_reference.SensorReference(timestamp: Decimal, uri: str | None = None)¶
Bases:
object
A reference to a sensor in a specific frame.
- classmethod from_json(json: JSONStreamSync) SensorReference ¶
Construct an instant of this class from RailLabel JSON data.
- timestamp: Decimal¶
Timestamp containing the Unix epoch time of the sensor in a specific frame with up to nanosecond precision.
- to_json() JSONStreamSync ¶
Export this object into the RailLabel JSON format.