Skip to content

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

Merged
jacobperron merged 2 commits intofoxyfrom
jacob/foxy_backport_166
Nov 20, 2020
Merged

[foxy] Fix race with launch context changes when loading composable nodes (#166)#206
jacobperron merged 2 commits intofoxyfrom
jacob/foxy_backport_166

Conversation

@jacobperron
Copy link
Copy Markdown
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>
Copy link
Copy Markdown

@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.

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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants