-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix race with launch context changes when loading composable nodes (#166
) (#238) * 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. Backporting note: As far as I can tell, the *Composable* launch_ros classes in Dashing are not setup to be able to be tested. We would need to add a bunch of additional dependencies to write tests here. I didn't think that was worth it for Dashing, so I just removed the tests. Signed-off-by: Jacob Perron <jacob@openrobotics.org> Signed-off-by: Chris Lalancette <clalancette@openrobotics.org> Co-authored-by: Jacob Perron <jacob@openrobotics.org>
- Loading branch information
1 parent
283c4f7
commit 4de5934
Showing
1 changed file
with
68 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters