Skip to content

Commit

Permalink
ackermann motion model bug (ros-navigation#3498) (ros-navigation#3501)
Browse files Browse the repository at this point in the history
Prevent cost to be modified twice.

(cherry picked from commit 482017c)

Co-authored-by: HAIDAR OBEID <31267966+ObeidHaidar@users.noreply.github.com>
  • Loading branch information
2 people authored and RBT22 committed Oct 24, 2023
1 parent fb407a7 commit a068970
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 a068970

Please sign in to comment.