ros-drivers / velodyne

ROS support for Velodyne 3D LIDARs
http://ros.org/wiki/velodyne
Other
646 stars 643 forks source link

Fix non-responsive node on packet timeout #466

Closed JKaniarz closed 2 years ago

JKaniarz commented 2 years ago

Commits d016fcc336a0c4e49423c966aa3acc0477848644 and 15771a42cf91ffaa946846174c639edf1056b693 in combination turned packet timeouts into an error that stops the node from responding. This patch restores the original behavior.

Changed getPacket() to return 0 on timeout and 1 on success. Updated VelodyneDriver::poll() accordingly.