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

[foxy] Fix race with launch context changes when loading composable nodes (#166) #206

Merged
merged 2 commits into from Nov 20, 2020

Conversation

jacobperron
Copy link
Member

@jacobperron jacobperron commented Nov 20, 2020

Backport #166 to Foxy.


Since I plan to open up a bunch of Foxy backports, I've triggered CI for all of them together:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Edit: failures and warnings are unrelated.

)

* Fix race with launch context changes when loading composable nodes

This bug was discovered when trying load composable nodes from a GroupAction.
The ROS namespace (and presumably other remaps) pushed onto the context stack
was popped after the LoadComposableNodes execute() function finished.
But because the loading happens asynchronously, we need to make sure we get the
necessary information from the context before execute() finishes.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Add regression tests for LoadComposableNode

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Properly shutdown mock conatiner node

Also added some debug logs to the load node action for posterity.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron added this to Proposed in Foxy Patch Release 4 via automation Nov 20, 2020
@jacobperron jacobperron moved this from Proposed to Needs release in Foxy Patch Release 4 Nov 20, 2020
Copy link
Contributor

@mjeronimo mjeronimo left a comment

Choose a reason for hiding this comment

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

Minor doc update required.

launch_ros/launch_ros/actions/load_composable_nodes.py Outdated Show resolved Hide resolved
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants