Skip to content

[ROS2] Add cleanup function to create_action_servers.py #54

@amalnanavati

Description

@amalnanavati

Some trees make changes (e.g., allowing certain collisions, toggling perception nodes on) that should be undone when the tree ends. The tree can end in a couple of circumstances:

  1. Tree succeeds: The tree should be designed in such a way that all behaviors necessary to undo the changes are taken care of if the tree succeeds.
  2. Tree fails: In this case, we can add a selector with memory to run certain cleanup behaviors after failure.
  3. ROS action fails or is aborted: In this case, we need a cleanup function in create_action_servers.py that cleans up any state from the action.

This Issue is to implement #3.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions