hku-mars / mlcc

Fast and Accurate Extrinsic Calibration for Multiple LiDARs and Cameras
GNU General Public License v2.0
491 stars 108 forks source link

quastion about your voxel: does it only for livox lidar: #8

Closed mingkunwxc closed 2 years ago

mingkunwxc commented 2 years ago

Dear authors: In your project,I found that loc_xyz sames like must more than 0. And,i found the livox lidar's frame is like this,x>0,y>0,z>0. but ,I want using it for robosens lidar . If I need modify this param? thanks for your help.


  for (int j = 0; j < 3; j++)
    {
        loc_xyz[j] = pt_trans[j] / voxel_size;
        if (loc_xyz[j] < 0)
            loc_xyz[j] -= 1.0;
    }

samsdolphin commented 2 years ago

Hi mingkunwxc, this code works for mechanical spinning LiDAR like RoboSense, Velodyne, etc. The code you included here only means if the coordinate of the transformed point is negative, it should be put into a voxel with a negative location index.

mingkunwxc commented 2 years ago

Hi mingkunwxc, this code works for mechanical spinning LiDAR like RoboSense, Velodyne, etc. The code you included here only means if the coordinate of the transformed point is negative, it should be put into a voxel with a negative location index.

thanks, I got it