RobustFieldAutonomyLab / LeGO-LOAM

LeGO-LOAM: Lightweight and Ground-Optimized Lidar Odometry and Mapping on Variable Terrain
BSD 3-Clause "New" or "Revised" License
2.35k stars 1.11k forks source link

Doesnot work on own rosbag data #177

Closed vijaygovindappa closed 4 years ago

vijaygovindappa commented 4 years ago

Hi All, First of all, you all have doen amazing job. From the video the results looks really good. Apologies, if my questions are silly, i am new to SLAM. I am trying to run on my own rosbag data and results doesnot look great. I believe it is because of the IMU. I have 2 questions.

  1. When you say IMU and LiDAR should be aligned, does that mean the axis should be aligned, or the pose should be aligned as in the x, y,z of IMU and LiDAR shoud be same ?
  2. Should the frequency of IMU and LiDAR match ?

Waiting for your reply.

Thank you

vijaygovindappa commented 4 years ago

My LiDAR is VLP32-E running at 16hz and IMu is running at 50 hz.

bugerry87 commented 4 years ago

Try this configuration in utility.h

// VLP-32c
extern const int N_SCAN = 32;
extern const int Horizon_SCAN = 1800;
extern const float ang_res_x = 0.2;
extern const float ang_res_y = 40.0/float(N_SCAN-1);
extern const float ang_bottom = 25.0;
extern const int groundScanInd = 20;

Works pretty well for me with impressively accurate loop closing.

Note: I assume you meant VLP-32c

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.