Skip to content

Commit

Permalink
Added goal accepted check before flagging navigator as running (ros-n…
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmitchadams authored and redvinaa committed Jun 30, 2022
1 parent 775dd9c commit 45e58eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nav2_bt_navigator/include/nav2_bt_navigator/navigator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,13 @@ class Navigator
return false;
}

plugin_muxer_->startNavigating(getName());
bool goal_accepted = goalReceived(goal);

return goalReceived(goal);
if (goal_accepted) {
plugin_muxer_->startNavigating(getName());
}

return goal_accepted;
}

/**
Expand Down

0 comments on commit 45e58eb

Please sign in to comment.