hku-mars / HBA

[RAL 2023] A globally consistent LiDAR map optimization module
GNU General Public License v2.0
469 stars 66 forks source link

PointCloud in visualization wrong #9

Closed JACKLiuDay closed 1 year ago

JACKLiuDay commented 1 year ago

image Hi, I got some new error with my own dataset. I run the LIO-SAM and save some pcd and pose. But when I launch HBA with this dataset. The visualization shows the pose correctly. But the pointcloud is wrong. The lidar is ouster-0-64U. Could you give me some advice? The transformation matrix in LIO-SAM pose graph need to be changed to fit HBA?

wwtinwhu commented 1 year ago

@JACKLiuDay The pose format for HBA is x,y,z,qw,qx,qy,qz. You may check whether LIO-SAM pose format is consistent with that.

samsdolphin commented 1 year ago

@JACKLiuDay, the point cloud should be in the imu coordinate system so that you can transform them into the world coordinate system. I guess the point cloud you used was in the world coordinate system. Hope this helps.

JACKLiuDay commented 1 year ago

@JACKLiuDay The pose format for HBA is x,y,z,qw,qx,qy,qz. You may check whether LIO-SAM pose format is consistent with that.

Hi, thank you for your advice. I will check it in my code.

JACKLiuDay commented 1 year ago

@JACKLiuDay, the point cloud should be in the imu coordinate system so that you can transform them into the world coordinate system. I guess the point cloud you used was in the world coordinate system. Hope this helps.

Hi, thank you for your quick reply. I believe the pose in LIO-SAM is world system. Becasue the pose was calculated in pose graph in LIO-SAM. I just saved the keypose and did not transform it into imu system.

JACKLiuDay commented 1 year ago

@JACKLiuDay, the point cloud should be in the imu coordinate system so that you can transform them into the world coordinate system. I guess the point cloud you used was in the world coordinate system. Hope this helps.

Hi, bro. I tried to transform point cloud into local frame and it worked. HBA works good. I am tring to use HBA for more dataset. Thank you for your great job.

pauldeee commented 1 year ago

Hi @JACKLiuDay,

Is it possible for you to share your solution?

lvpengxiang commented 5 months ago

I also encountered the same problem as you. Could you please tell me how you modified the code of liosam?