ethz-asl / COIN-LIO

Other
198 stars 18 forks source link

drift on tunnel dataset #8

Closed TongxingJin closed 1 month ago

TongxingJin commented 1 month ago

Hi, thanks for your inspiring work and opensource code. I have tried on 2023-08-08-17-12-37-tunnel_s.bag with default parameters in mapping_enwide.launch, but the odometry drift a lot in the tunnel direction like this, rviz_screenshot_2024_06_11-14_11_02 So what do you think is the reason, and how can I do to get the performance like you did? Thanks.

patripfr commented 1 month ago

Hi, I'm not sure what happened in your case, I've just ran it on my machine without any issues to double check. tunnel_s

One potential issue I could imagine is that your machine cannot keep up with playing the bag in realtime (especially when you are running rviz in parallel) and starts dropping frames.

Could you try running the bag with a slower replay rate and turning off rviz?

TongxingJin commented 1 month ago

Hi, thanks for your prompt reply. I solved this problem by rebooting my PC, maybe it's the excessive usage of memory that lowered the processing frequency. And one suggestion is you could publish downsampled points in /cloud_registered_body to avoid the unnecessary burden of rviz and memory usage. My outcome now looks like this, so the little drift on the wall at the start&end point is normal performance, right? rviz_screenshot_2024_06_11-18_24_08

patripfr commented 1 month ago

Great to hear :) Yes, this is the expected performance. Thanks for the suggestion, so far I publish the full cloud for a better visualization of the intensity in the environment, but indeed this is very heavy in memory and for rviz. I might add an option for downsampling in a future version.

TongxingJin commented 1 month ago

You could use pcl::UniformSampling to replace pcl::VoxelGrid to implement downsampling and meanwhile avoid the unwanted averaging of intensity, it works for me.