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

Switch to using the rclpy context manager everywhere. #389

Merged
merged 3 commits into from
Jul 24, 2024

Conversation

clalancette
Copy link
Contributor

@clalancette clalancette commented Jul 23, 2024

This lets us use less code, but still effectively
manage the lifetime of the rclpy.init. We also
change ExternalShutdownException handling to
work just like a KeyboardInterrupt.

This is one of the last PRs before we can close out ros2/rclpy#1280

@sloretz FYI

This should really be merged simultaneously with ros2/ros2_documentation#4586

This lets us use less code, but still effectively
manage the lifetime of the rclpy.init.  We also
change ExternalShutdownException handling to
work just like a KeyboardInterrupt.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette
Copy link
Contributor Author

And here is new CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

Copy link
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

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

lgtm with green CI.

@clalancette clalancette merged commit 291c789 into rolling Jul 24, 2024
2 of 3 checks passed
@clalancette clalancette deleted the clalancette/rclpy-use-context-manager branch July 24, 2024 17:39
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.

4 participants