There was an error while loading. Please reload this page.
1 parent 1cbc2db commit fcea9ecCopy full SHA for fcea9ec
nav2_mppi_controller/src/path_handler.cpp
@@ -174,7 +174,9 @@ void PathHandler::setPath(const nav_msgs::msg::Path & plan)
174
{
175
global_plan_ = plan;
176
global_plan_up_to_inversion_ = global_plan_;
177
- inversion_locale_ = utils::removePosesAfterFirstInversion(global_plan_up_to_inversion_);
+ if (enforce_path_inversion_) {
178
+ inversion_locale_ = utils::removePosesAfterFirstInversion(global_plan_up_to_inversion_);
179
+ }
180
}
181
182
nav_msgs::msg::Path & PathHandler::getPath() {return global_plan_;}
0 commit comments