RoboSense-LiDAR / rslidar_sdk

RoboSense LiDAR SDK for ROS & ROS2
Other
457 stars 219 forks source link

Points published with NAN values #115

Open ajay1606 opened 1 year ago

ajay1606 commented 1 year ago

Hello,

Have been using robosense lidar (80ch, B pearl) since quite long time. Recently tested LiDAR with ROS2 driver & it works fine.

But in certain part of the code made to publish points with NAN values.

`https://github.com/RoboSense-LiDAR/rs_driver/blob/main/src/rs_driver/driver/decoder/decoder_RS80.hpp

Screenshot from 2023-03-21 11-09-04

These nan values causes error while using sensor data in algorithms. Just by curious, which conditions making those values as NAN ? is it fine to assign some least value or skip those values from driver ?