Skip to content

Commit

Permalink
Inscribed/Circumscribed costs must be updated to take into account the
Browse files Browse the repository at this point in the history
current shape of the robot.
Was previous only being called once in initialize().
  • Loading branch information
Leif Terry committed Oct 13, 2023
1 parent 57dd8d4 commit fa09c78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nav2_mppi_controller/src/critics/obstacles_critic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ void ObstaclesCritic::score(CriticData & data)
return;
}

possibly_inscribed_cost_ = findCircumscribedCost(costmap_ros_);

// If near the goal, don't apply the preferential term since the goal is near obstacles
bool near_goal = false;
if (utils::withinPositionGoalTolerance(near_goal_distance_, data.state.pose.pose, data.path)) {
Expand Down

0 comments on commit fa09c78

Please sign in to comment.