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

Exception on shutdown #4

Open
Timple opened this issue Apr 16, 2024 · 2 comments
Open

Exception on shutdown #4

Timple opened this issue Apr 16, 2024 · 2 comments

Comments

@Timple
Copy link

Timple commented Apr 16, 2024

KeyboardInterrupt should be handled. Would you accept a PR for this?

[twist_stamper-45] Traceback (most recent call last):
[twist_stamper-45]   File "/opt/ros/iron/lib/twist_stamper/twist_stamper", line 33, in <module>
[twist_stamper-45]     sys.exit(load_entry_point('twist-stamper==0.0.3', 'console_scripts', 'twist_stamper')())
[twist_stamper-45]   File "/opt/ros/iron/lib/python3.10/site-packages/twist_stamper/twist_stamper.py", line 55, in main
[twist_stamper-45]     rclpy.spin(twist_stamper)
[twist_stamper-45]   File "/opt/ros/iron/lib/python3.10/site-packages/rclpy/__init__.py", line 228, in spin
[twist_stamper-45]     executor.spin_once()
[twist_stamper-45]   File "/opt/ros/iron/lib/python3.10/site-packages/rclpy/executors.py", line 748, in spin_once
[twist_stamper-45]     self._spin_once_impl(timeout_sec)
[twist_stamper-45]   File "/opt/ros/iron/lib/python3.10/site-packages/rclpy/executors.py", line 737, in _spin_once_impl
[twist_stamper-45]     handler, entity, node = self.wait_for_ready_callbacks(timeout_sec=timeout_sec)
[twist_stamper-45]   File "/opt/ros/iron/lib/python3.10/site-packages/rclpy/executors.py", line 723, in wait_for_ready_callbacks
[twist_stamper-45]     return next(self._cb_iter)
[twist_stamper-45]   File "/opt/ros/iron/lib/python3.10/site-packages/rclpy/executors.py", line 620, in _wait_for_ready_callbacks
[twist_stamper-45]     wait_set.wait(timeout_nsec)
[twist_stamper-45] KeyboardInterrupt
@joshnewans
Copy link
Owner

Yeah, go for it!

@reinzor
Copy link
Contributor

reinzor commented Oct 4, 2024

#6

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

No branches or pull requests

3 participants