Skip to content

Commit 8ee41be

Browse files
authored
feat(intersection): add wall marker for too late detect objects (#10006)
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent 174a09e commit 8ee41be

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

planning/behavior_velocity_planner/autoware_behavior_velocity_intersection_module/src/debug.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,14 @@ autoware::motion_utils::VirtualWalls IntersectionModule::createVirtualWalls()
446446
wall.pose = debug_data_.absence_traffic_light_creep_wall.value();
447447
virtual_walls.push_back(wall);
448448
}
449+
if (debug_data_.too_late_stop_wall_pose) {
450+
wall.style = autoware::motion_utils::VirtualWallType::pass;
451+
wall.text = "intersection";
452+
wall.detail = "too late to stop";
453+
wall.ns = "intersection" + std::to_string(module_id_) + "_";
454+
wall.pose = debug_data_.too_late_stop_wall_pose.value();
455+
virtual_walls.push_back(wall);
456+
}
449457
return virtual_walls;
450458
}
451459

planning/behavior_velocity_planner/autoware_behavior_velocity_intersection_module/src/scene_intersection.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ DecisionResult IntersectionModule::modifyPathVelocityDetail(PathWithLaneId * pat
273273
const auto closest_idx = intersection_stoplines.closest_idx;
274274
const std::string evasive_diag = generateEgoRiskEvasiveDiagnosis(
275275
*path, closest_idx, time_distance_array, too_late_detect_objects, misjudge_objects);
276+
debug_data_.too_late_stop_wall_pose = path->points.at(default_stopline_idx).point.pose;
276277
return OverPassJudge{safety_diag, evasive_diag};
277278
}
278279
return OverPassJudge{

planning/behavior_velocity_planner/autoware_behavior_velocity_intersection_module/src/scene_intersection.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ class IntersectionModule : public SceneModuleInterfaceWithRTC
214214
bool passed_first_pass_judge{false};
215215
bool passed_second_pass_judge{false};
216216
std::optional<geometry_msgs::msg::Pose> absence_traffic_light_creep_wall{std::nullopt};
217+
std::optional<geometry_msgs::msg::Pose> too_late_stop_wall_pose{std::nullopt};
217218

218219
std::optional<std::vector<lanelet::CompoundPolygon3d>> attention_area{std::nullopt};
219220
std::optional<std::vector<lanelet::CompoundPolygon3d>> occlusion_attention_area{std::nullopt};

0 commit comments

Comments
 (0)