Skip to content
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

Stop the Scanner Rotation #24

Closed
issambm opened this issue Mar 5, 2022 · 5 comments · Fixed by #25
Closed

Stop the Scanner Rotation #24

issambm opened this issue Mar 5, 2022 · 5 comments · Fixed by #25

Comments

@issambm
Copy link

issambm commented Mar 5, 2022

I was wondering how to stop the scanner in command-line after executing, for example, the following ROS launch command?
roslaunch sick_scan sick_nav_3xx.launch hostname:=<ip-address>
Thanks.

@michael1309
Copy link
Collaborator

michael1309 commented Mar 6, 2022

There are at least two methods to stop the lidar device driver:

  • Use <STRG>+C to stop it manually
  • Use the following tool to stop the driver kill_generic_caller

@issambm
Copy link
Author

issambm commented Mar 6, 2022

Thank you for your reply.

I am actually talking about stopping the physical rotation of the scanner after your do Ctrl+C. Would you please let me know how to do that?

@issambm issambm changed the title Stop the Scanner Stop the Scanner Rotation Mar 6, 2022
@issambm
Copy link
Author

issambm commented Mar 7, 2022

I was wondering if there is even a way to stop the rotation of the scanner via command-line, other than doing this through SOPAS ET software every time which is inconvenient.

Thanks in advance for any help you could provide on this.

rostest pushed a commit that referenced this issue Mar 8, 2022
@rostest
Copy link
Collaborator

rostest commented Mar 8, 2022

Thanks for reporting this issue. A driver update is available on the branch https://github.com/SICKAG/sick_scan_xd/tree/feature/lidar_stop_exit. This driver update supports a new ros service to stop the scanner at exit. Please checkout the branch and rebuild.

To stop the scanner rotation and to exit the driver, you can call the new ros service SickScanExit by running

rosservice call /sick_nav_3xx/SickScanExit "{}" # stop scanner and exit on ROS-1
ros2 service call /SickScanExit sick_scan/srv/SickScanExitSrv "{}" # stop scanner and exit on ROS-2

Alternatively you can use Ctrl-C, which now stops the scanner and exits the driver, too.

Please leave a short message, so that we can merge the branch to the main trunk.

@issambm
Copy link
Author

issambm commented Mar 8, 2022

Great, thank you!

@issambm issambm closed this as completed Mar 8, 2022
rostest added a commit that referenced this issue Mar 9, 2022
Fix issue #24 (stop scanner at exit), new ros service SickScanExit to…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants