Skip to content

Commit 482017c

Browse files
authored
ackermann motion model bug (ros-navigation#3498)
Prevent cost to be modified twice.
1 parent 0822a14 commit 482017c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nav2_mppi_controller/src/critics/constraint_critic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ void ConstraintCritic::score(CriticData & data)
6565
std::move(out_of_min_bounds_motion) +
6666
std::move(out_of_turning_rad_motion)) *
6767
data.model_dt, {1}, immediate) * weight_, power_);
68+
return;
6869
}
6970

7071
data.costs += xt::pow(

0 commit comments

Comments
 (0)