Skip to content

Commit

Permalink
feat(obstacle_cruise_planner): suppress sudden slow down (#3905)
Browse files Browse the repository at this point in the history
* feat(obstacle_cruise_planner): suppress flickering to entry slow down

Signed-off-by: Takayuki Murooka <[email protected]>

* fix

Signed-off-by: Takayuki Murooka <[email protected]>

* update config

Signed-off-by: Takayuki Murooka <[email protected]>

* feat(obstacle_cruise_planner): suppress sudden slow down

Signed-off-by: Takayuki Murooka <[email protected]>

---------

Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Jun 5, 2023
1 parent 30253b1 commit dc9282d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/obstacle_cruise_planner/src/planner_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ PlannerInterface::calculateDistanceToSlowDownWithConstraints(
if (prev_output) {
return prev_output->target_vel;
}
return slow_down_vel;
return std::max(planner_data.ego_vel, slow_down_vel);
}
if (planner_data.ego_vel < slow_down_vel) {
return slow_down_vel;
Expand Down

0 comments on commit dc9282d

Please sign in to comment.