Skip to content

Commit

Permalink
ackermann motion model bug (ros-navigation#3498)
Browse files Browse the repository at this point in the history
Prevent cost to be modified twice.
  • Loading branch information
ObeidHaidar authored Mar 22, 2023
1 parent 0822a14 commit 482017c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nav2_mppi_controller/src/critics/constraint_critic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ void ConstraintCritic::score(CriticData & data)
std::move(out_of_min_bounds_motion) +
std::move(out_of_turning_rad_motion)) *
data.model_dt, {1}, immediate) * weight_, power_);
return;
}

data.costs += xt::pow(
Expand Down

0 comments on commit 482017c

Please sign in to comment.