Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion nav2_bt_navigator/src/navigators/navigate_to_pose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,21 @@ NavigateToPoseNavigator::goalReceived(ActionT::Goal::ConstSharedPtr goal)

void
NavigateToPoseNavigator::goalCompleted(
typename ActionT::Result::SharedPtr /*result*/,
typename ActionT::Result::SharedPtr result,
const nav2_behavior_tree::BtStatus /*final_bt_status*/)
{
if (result->error_code == 0) {
Copy link
Copy Markdown
Member

@SteveMacenski SteveMacenski Oct 8, 2025

Choose a reason for hiding this comment

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

Error codes and messages do not exist in Humble, thus I think this PR is unfortunately invalid and cannot be merged in any form 😦

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, this is enabled in humble_main, tuned for the next release!.

Closing this PR

if (bt_action_server_->populateInternalError(result)) {
RCLCPP_WARN(logger_,
"NavigateToPoseNavigator::goalCompleted, internal error %d:%s.",
result->error_code,
result->error_msg.c_str());
}
} else {
RCLCPP_WARN(logger_, "NavigateToPoseNavigator::goalCompleted error %d:%s.",
result->error_code,
result->error_msg.c_str());
}
}

void
Expand Down