You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To my understanding, the code responsible for the auto standby assumes that the motor has been started (e.g a node subscribing to the /scan topic) before it can be stopped. This is because is_scanning must be true before the motor can be automatically stopped.
To my understanding, the code responsible for the auto standby assumes that the motor has been started (e.g a node subscribing to the
/scan
topic) before it can be stopped. This is becauseis_scanning
must be true before the motor can be automatically stopped.rplidar_ros/src/rplidar_node.cpp
Lines 441 to 443 in f0ace62
is_scanning
is only set in thestart()
methodrplidar_ros/src/rplidar_node.cpp
Line 346 in f0ace62
which is only called if
auto_standby
is disabled or/scan
has more than one subscriberrplidar_ros/src/rplidar_node.cpp
Lines 438 to 439 in f0ace62
rplidar_ros/src/rplidar_node.cpp
Line 416 in f0ace62
A possible solution is to simply skip the check when having no subscribers. Due to the LIDAR starting spinning as soon as it gets power.
The text was updated successfully, but these errors were encountered: