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

Fix zenoh shutdown #550

Draft
wants to merge 2 commits into
base: rolling
Choose a base branch
from
Draft

Fix zenoh shutdown #550

wants to merge 2 commits into from

Conversation

ahcorde
Copy link
Contributor

@ahcorde ahcorde commented Oct 4, 2024

Fix zenoh shutdown

Related with ros2/rmw_zenoh#276

Signed-off-by: Alejandro Hernández Cordero <[email protected]>
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
sys.exit(1)

rclpy.spin(node)
rclpy.init(args=[])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens with zenoh if we use contextmanager manner with InitContextManager? i am not sure if this change is needed here because both call cleanup process through the context.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, exactly, this should not be needed. Going forward, our recommended pattern in rclpy is to use the context manager with rclpy.init, so if that is not working, there is a bug somewhere that needs to be fixed.

@ahcorde ahcorde marked this pull request as draft October 9, 2024 21:14
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 this pull request may close these issues.

3 participants