YDLIDAR / ydlidar_ros2_driver

ydlidar driver package under ros2
Other
54 stars 99 forks source link

Bugfix/service flooding errors #32

Open flochre opened 10 months ago

flochre commented 10 months 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 10 months ago

This would partly solve #33