Skip to content

Commit 62ee88f

Browse files
committed
fix(avoidance): wait and see objects around ego straight lane
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
1 parent 6cef1d5 commit 62ee88f

File tree

1 file changed

+5
-5
lines changed
  • planning/behavior_path_avoidance_module/src

1 file changed

+5
-5
lines changed

planning/behavior_path_avoidance_module/src/utils.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ bool isAmbiguousStoppedVehicle(
647647
}
648648

649649
if (object.is_within_intersection) {
650+
std::string turn_direction = object.overhang_lanelet.attributeOr("turn_direction", "else");
651+
if (turn_direction == "straight") {
652+
return true;
653+
}
654+
650655
RCLCPP_DEBUG(rclcpp::get_logger(__func__), "object is in the intersection area.");
651656
return false;
652657
}
@@ -819,11 +824,6 @@ bool isSatisfiedWithVehicleCondition(
819824
}
820825

821826
if (object.is_within_intersection) {
822-
std::string turn_direction = object.overhang_lanelet.attributeOr("turn_direction", "else");
823-
if (turn_direction == "straight") {
824-
return true;
825-
}
826-
827827
if (object.behavior == ObjectData::Behavior::NONE) {
828828
object.reason = "ParallelToEgoLane";
829829
return false;

0 commit comments

Comments
 (0)