-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lidar will not stop spinning #286
Comments
The lidar will keep spinning as long as there is a subscriber on the lidar topic. If you don't want the lidar to spin then make sure that you don't have any active subscribers on that topic. If I recall correctly, that means that you need to turn diagnostics off from the turtlebot4-setup tool. The stop motor service is not available when the lidar is set to automatically start and stop. If you want to control that manually then you will need to disable the automatic functionality. |
I cannot see anything related to diagnostics in the setup. This is on a
fresh boot of the raspberry pi as well.
…On Thu, Oct 12, 2023 at 1:45 PM Hilary Luo ***@***.***> wrote:
The lidar will keep spinning as long as there is a subscriber on the lidar
topic. If you don't want the lidar to spin then make sure that you don't
have any active subscribers on that topic. If I recall correctly, that
means that you need to turn diagnostics off from the turtlebot4-setup tool.
The stop motor service is not available when the lidar is set to
automatically start and stop. If you want to control that manually then you
will need to disable the automatic functionality.
—
Reply to this email directly, view it on GitHub
<#286 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMDPYDXV3WMNLTJ56A43OSLX7BCEZANCNFSM6AAAAAA55BAPAQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
You can verify the number of subscribers on the lidar topic by running You can turn diagnostics off by running |
Thanks Hilary! But it does not seem to work in my case. Any other suggestions?
|
@PhilerXu If you have checked to make sure that there are no subscribers on the /scan topic already, make sure that you have the latest version of the rplidar package (>=2.1.3). If that still doesn't work try subscribing to scan and then ending the subscription and see if that works. |
I have the same issue, after turning diagnostics off and no subscriber to the topic /scan. The rplidar package is 2.1.4. |
@CurtinRobotAI after turning the robot on with no subscribers on that topic, can you try subscribing in the terminal and then stop your subscription and see if it turns off when it sees the number of subscribers go from 1 to 0? Let me know what you find, if there is an issue we can enter a ticket on the rplidar repo |
Just to add my experience here as a data point. I set the AutoStandby to False in rplidar.launch.py per the comments in #233 but launched and stopped the node but no joy. I then turned off diagnostics per earlier comment here and verified that the /scan topic disappeared with 'tos2 topic list', but the lidar motor still didn't stop. I then ran rplidar.launch.py with AutoStandby set to false (from before), and this time with no subscriber from the diagnostics, and then stopped the node. That stopped the motor. |
@hilary-luo Thanks for the comments. Once I turned on the Turtlebot4, I used 'ros2 topic info /scan -v' to check whether there is a subscriber for the topic '/scan'. It showed zero subscriber. However, I ran the ros2 topic echo /scan, and then Ctrl+C to kill the echo process, the motor stopped. |
LOG=/home/ubuntu/lidar2.log function MyKillAll () { { echo "------------------------------" echo "------------------------------" echo "------------------------------" echo "DONE--------------------------" |
On a turtlebox that I just unboxed two weeks ago I can confirm that these instructions worked, the constant lidar spinning while the robot was charging was annoying |
Please provide the following information:
My lidar is constantly spinning the moment the raspberry pi boots up. It will not stop. I have tried to stop it via
ros2 service call /stop_motor std_srvs/srv/Empty {}
But that doesn't stop it.
I have to unplug it or the raspberry pi to get it to stop when I am not using it.
The text was updated successfully, but these errors were encountered: