Skip to content

Commit fa09c78

Browse files
author
Leif Terry
committed
Inscribed/Circumscribed costs must be updated to take into account the
current shape of the robot. Was previous only being called once in initialize().
1 parent 57dd8d4 commit fa09c78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nav2_mppi_controller/src/critics/obstacles_critic.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ void ObstaclesCritic::score(CriticData & data)
108108
return;
109109
}
110110

111+
possibly_inscribed_cost_ = findCircumscribedCost(costmap_ros_);
112+
111113
// If near the goal, don't apply the preferential term since the goal is near obstacles
112114
bool near_goal = false;
113115
if (utils::withinPositionGoalTolerance(near_goal_distance_, data.state.pose.pose, data.path)) {

0 commit comments

Comments
 (0)