RobustFieldAutonomyLab / LeGO-LOAM

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

I think the point cloud should remove the Nan point in the call back. #20

Closed 306327680 closed 6 years ago

306327680 commented 6 years ago

Hello, I use the RoboSense lidar and when I run it the program is broken and finally, I find that the point cloud contains nan point, I think it should add a removeNaNFromPointCloud when point cloud comes in.

TixiaoShan commented 6 years ago

Hi @306327680 , agreed. If your point cloud driver gives you Nan point, you should definitely add that function, which is used in the original LOAM code. Because my Velodyne driver does't give any Nan point in the cloud, I deleted that function.

HappySamuel commented 5 years ago

Hi @TixiaoShan

How should i add the NAN point removal function into the code. As i use the Ouster OS1-16 lidar, there is NAN points generated.

Best, Samuel

zorosmith commented 5 years ago

you can use another ros node which subscribes to your raw point cloud firstly, removes NAN points and then publish the point cloud topic again.

At 2019-05-31 15:17:59, "HappySamuel" notifications@github.com wrote:

Hi @TixiaoShan

How should i add the NAN point removal function into the code. As i use the Ouster OS1-16 lidar, there is NAN points generated.

Best, Samuel

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.