holtvogt / tracklet_parser

A parser for tracklet labels in KITTI Raw Format 1.0 created by the Computer Vision Annotation Tool (CVAT).
MIT License
4 stars 0 forks source link

Rotation angle in tracklet_labels.xml #2

Closed holtvogt closed 2 years ago

holtvogt commented 2 years ago

When labeling my point cloud data via CVAT, I observed that the only meaningful rotation angle that changes, is the rotation angle z. This makes sense in a manner that in LiDAR coordinates, this is the yaw axis.

Maybe this query https://github.com/holtvogt/tracklet_parser/blob/6f2748ee5cb4ff732bf859951db7e774fb35ce22/tracklet_parser/tracklet_parser.py#L65 needs to be adjusted to the proper camera coordinate conversion (as y in camera coordinates is -z in LiDAR coordinates):

elif pose_attribute.tag == "rz":
    tracklet.rotation_y = -float(pose_attribute.text)