Skip to content

Commit

Permalink
fix(goal_planner): disable freespace pull over after arriving modifie…
Browse files Browse the repository at this point in the history
…d goal (#5290)

fix(goal_planner): disable freespace pull over after arriving modified goal

Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 authored Oct 12, 2023
1 parent 744d48d commit d8f285b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ void GoalPlannerModule::onFreespaceParkingTimer()
return;
}

if (isOnModifiedGoal()) {
return;
}

const bool is_new_costmap =
(clock_->now() - planner_data_->costmap->header.stamp).seconds() < 1.0;
constexpr double path_update_duration = 1.0;
Expand Down Expand Up @@ -1210,6 +1214,10 @@ bool GoalPlannerModule::isStopped()

bool GoalPlannerModule::isStuck()
{
if (isOnModifiedGoal()) {
return false;
}

constexpr double stuck_time = 5.0;
if (!isStopped(odometry_buffer_stuck_, stuck_time)) {
return false;
Expand Down

0 comments on commit d8f285b

Please sign in to comment.