Skip to content

Commit

Permalink
change error code to GOAL_TRANSFORMATION_ERROR (ros-navigation#4341)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Wake <michael.wake@aosgrp.com.au>
  • Loading branch information
aosmw committed Oct 4, 2024
1 parent 0be3f5b commit 0ff7a1c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ NavigateThroughPosesNavigator::initializeGoalPoses(ActionT::Goal::ConstSharedPtr
goal_pose, goal_pose, *feedback_utils_.tf, feedback_utils_.global_frame,
feedback_utils_.transform_tolerance))
{
current_error_code_ = ActionT::Result::TF_ERROR;
current_error_code_ = ActionT::Result::GOAL_TRANSFORMATION_ERROR;
current_error_msg_ =
"Failed to transform a goal pose (" + std::to_string(i) + ") provided with frame_id '" +
goal_pose.header.frame_id +
Expand Down
2 changes: 1 addition & 1 deletion nav2_bt_navigator/src/navigators/navigate_to_pose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ NavigateToPoseNavigator::initializeGoalPose(ActionT::Goal::ConstSharedPtr goal)
goal->pose, goal_pose, *feedback_utils_.tf, feedback_utils_.global_frame,
feedback_utils_.transform_tolerance))
{
current_error_code_ = ActionT::Result::TF_ERROR;
current_error_code_ = ActionT::Result::GOAL_TRANSFORMATION_ERROR;
current_error_msg_ =
"Failed to transform a goal pose provided with frame_id '" +
goal->pose.header.frame_id +
Expand Down
2 changes: 1 addition & 1 deletion nav2_msgs/action/NavigateThroughPoses.action
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ string behavior_tree
# Note: The expected priority order of the errors should match the message order
uint16 NONE=0
uint16 FAILED_TO_LOAD_BEHAVIOR_TREE=901
uint16 TF_ERROR=902
uint16 GOAL_TRANSFORMATION_ERROR=902
uint16 POSE_NOT_AVAILABLE=912
uint16 UNKNOWN=999

Expand Down
2 changes: 1 addition & 1 deletion nav2_msgs/action/NavigateToPose.action
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ string behavior_tree
# Note: The expected priority order of the errors should match the message order
uint16 NONE=0
uint16 FAILED_TO_LOAD_BEHAVIOR_TREE=901
uint16 TF_ERROR=902
uint16 GOAL_TRANSFORMATION_ERROR=902
uint16 POSE_NOT_AVAILABLE=912
uint16 UNKNOWN=999

Expand Down

0 comments on commit 0ff7a1c

Please sign in to comment.