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

Document bt_navigator error_code_name_prefixes and error_msg #587

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aosmw
Copy link

@aosmw aosmw commented Aug 31, 2024

Documents featured added to support returning Error codes and messages from failed NavigateToPose/NavigateThroughPoses actions ros-navigation/navigation2#4341

@aosmw aosmw marked this pull request as draft August 31, 2024 10:17
Signed-off-by: Mike Wake <[email protected]>
@aosmw aosmw force-pushed the feature/mw/bt_error_msg_586 branch from 47c9846 to 61cc31a Compare August 31, 2024 10:19
Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

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

Largely LGTM

</Fallback>
<ClearEntireCostmap name="ClearGlobalCostmap-Context" service_name="global_costmap/clear_entirely_global_costmap"/>
</RecoveryNode>
</RateController>
<RecoveryNode number_of_retries="1" name="RecoveryFollowPath">
<FollowPath path="{path}" controller_id="{selected_controller}" error_code_id="{follow_path_error_code}"/>
<FollowPath path="{path}" controller_id="{selected_controller}" error_code_id="{follow_path_error_code}" error_msg="{follow_path_error_msg}"/>
Copy link
Member

Choose a reason for hiding this comment

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

This BT missing the spin/backup error_msg?

Copy link
Author

Choose a reason for hiding this comment

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

Done, although, spin and backup are not in the default list of error_code_name_prefixes. Do you want them added along with all builtin actions?

  std::vector<std::string> error_code_name_prefixes = {
    "follow_path",
    "compute_path",
  };

https://github.com/ros-navigation/navigation2/blob/52e7a79cbc7adc9e9fc7634dc26cc064e46eab97/nav2_behavior_tree/include/nav2_behavior_tree/bt_action_server_impl.hpp#L76C1-L80C1

Copy link
Member

Choose a reason for hiding this comment

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

I think its fine for them to not be in the defaults, as long as they're in the nav2_params.yaml that we ship by default. I think the absolute-defaults are the follow / compute paths

migration/Jazzy.rst Outdated Show resolved Hide resolved
migration/Jazzy.rst Outdated Show resolved Hide resolved
@aosmw aosmw force-pushed the feature/mw/bt_error_msg_586 branch from 8d20961 to ed98c63 Compare September 7, 2024 02:31
Signed-off-by: Steve Macenski <[email protected]>
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