raillabel.format.transform module

class raillabel.format.transform.Transform(pos: Point3d, quat: Quaternion)

Bases: object

A transformation between two coordinate systems.

classmethod from_json(json: JSONTransformData) Transform

Construct an instant of this class from RailLabel JSON data.

pos: Point3d

Translation with regards to the parent coordinate system.

quat: Quaternion

Rotation quaternion with regards to the parent coordinate system.

to_json() JSONTransformData

Export this object into the RailLabel JSON format.