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

[Humble] Let XML executables/nodes be "required" (like in ROS 1) (#751) #816

Open
wants to merge 1 commit into
base: humble
Choose a base branch
from

Conversation

monicaperezserrano
Copy link

Cherry pick of the commit discussed here: #179

Supports "on_exit" for XML launch files in ROS 2 humble.
I tested it locally and it works as expected:

  • Launch file with 2 nodes (both on_exit=shutdown)
  • When I kill one node, the process exits with Exit Code = 0.
  • Let XML nodes be "required"

Essentially on_exit="shutdown" is equivalent to ROS 1 required="true".

This feature is implemented using the python launchfile on_exit mechanism.

Right now "shutdown" is the only action accepted by on_exit, but theoretically more "on_exit" actions could be added later.

Example:

  • Added tests for yaml

* Let XML nodes be "required"

Essentially on_exit="shutdown" is equivalent to ROS 1 required="true".

This feature is implemented using the python launchfile on_exit mechanism.

Right now "shutdown" is the only action accepted by on_exit,
but theoretically more "on_exit" actions could be added later.

Example:
<executable cmd="ls" on_exit="shutdown"/>

* Added tests for yaml

Signed-off-by: Matthew Elwin <[email protected]>
@monicaperezserrano
Copy link
Author

Not sure why the DCO check is failing, I just cherry-picked the commit 986ea83.
However, it says the email of the author is not the expected one, any ideas on how to solve this?

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