YDLIDAR / ydlidar_ros2_driver

ydlidar driver package under ros2
Other
62 stars 110 forks source link

Bugfix/service flooding errors #32

Open flochre opened 1 year ago

flochre commented 1 year ago

I have seen a bug with the service stop scan.

I you call it, the node will flood you with error because the scan are not available. But this is normal because you asked it to stop sending the scan.

Fortunately enough there is a function called laser.isScanning() so I added it.

Unfortunately when because of reformatting the code it looks like I changed a lot of stuff in the end. it is really just one line See line 193 and closing the bracket again ..

flochre commented 1 year ago

This would partly solve #33