Skip to content

Commit

Permalink
Added goal accepted check before flagging navigator as running (#2949)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmitchadams authored May 13, 2022
1 parent ceda5a9 commit 29e4c42
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 29e4c42

Please sign in to comment.