Skip to content

Commit

Permalink
fix default behavior (enforce_path_inversion: false) (#3643)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Doisy <guillaume@dexory.com>
  • Loading branch information
doisyg and Guillaume Doisy authored Jun 21, 2023
1 parent 1cbc2db commit fcea9ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nav2_mppi_controller/src/path_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ void PathHandler::setPath(const nav_msgs::msg::Path & plan)
{
global_plan_ = plan;
global_plan_up_to_inversion_ = global_plan_;
inversion_locale_ = utils::removePosesAfterFirstInversion(global_plan_up_to_inversion_);
if (enforce_path_inversion_) {
inversion_locale_ = utils::removePosesAfterFirstInversion(global_plan_up_to_inversion_);
}
}

nav_msgs::msg::Path & PathHandler::getPath() {return global_plan_;}
Expand Down

0 comments on commit fcea9ec

Please sign in to comment.