Skip to content

Commit 7917330

Browse files
feat(dynamic_avoidance): change magic number (#6368)
* change magic num Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
1 parent 83f698d commit 7917330

File tree

1 file changed

+1
-1
lines changed
  • planning/behavior_path_dynamic_avoidance_module/src

1 file changed

+1
-1
lines changed

planning/behavior_path_dynamic_avoidance_module/src/scene.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ MinMaxValue DynamicAvoidanceModule::calcMinMaxLongitudinalOffsetToAvoid(
10671067
const double start_length_to_avoid = [&]() {
10681068
if (obj_vel < parameters_->max_stopped_object_vel) {
10691069
// The ego and object are the opposite directional or the object is parked.
1070-
return std::min(time_while_collision.time_to_start_collision, 8.0) * std::abs(obj_vel) +
1070+
return std::min(time_while_collision.time_to_start_collision, 3.5) * std::abs(obj_vel) +
10711071
std::abs(relative_velocity) * parameters_->start_duration_to_avoid_oncoming_object;
10721072
}
10731073
// The ego and object are the same directional.

0 commit comments

Comments
 (0)