PRBonn / semantic-kitti-api

SemanticKITTI API for visualizing dataset, processing data, and evaluating results.
http://semantic-kitti.org
MIT License
751 stars 185 forks source link

Problem about the kitti pose. #115

Closed Xiaxia1997 closed 1 year ago

Xiaxia1997 commented 1 year ago

From https://github.com/PRBonn/semantic-kitti-api/issues/78, we can get The poses.txt is given in the camera coordinate system, Tr is the extrinsic calibration matrix from velodyne to camera. In this case, Pose_velodyne = Tr_inv * Pose_camera. But the code isposes.append(np.matmul(Tr_inv, np.matmul(pose, Tr))) which means pose = Tr_inv * Pose_camera *Tr. I'm confused about it.

jbehley commented 1 year ago

The points are given in the lidar coordinate system. the poses in the coordinate system of the camera. Thus, one first needs to go from lidar to camera, apply the camera poses, and then back to lidar coordinates to have the points again in the lidar coordinate system.

hope that helps.

Xiaxia1997 commented 1 year ago

@jbehley So the camera poses means current camera position respect to the initial camera position.(From here). In this way, we get the points from current lidar coordinate system to initial lidar coordinate. Did I get it? Since from here, the writer explain the the pose as transformation from lidar to world coordinate system, I'm confused about it.

jbehley commented 1 year ago

If you have further issues with the transformation or need some additional explanation, let me know (and re-open the issue). However, I close the issue for now.