File tree 1 file changed +5
-5
lines changed
planning/behavior_path_avoidance_module/src
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -647,6 +647,11 @@ bool isAmbiguousStoppedVehicle(
647
647
}
648
648
649
649
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
+
650
655
RCLCPP_DEBUG (rclcpp::get_logger (__func__), " object is in the intersection area." );
651
656
return false ;
652
657
}
@@ -819,11 +824,6 @@ bool isSatisfiedWithVehicleCondition(
819
824
}
820
825
821
826
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
-
827
827
if (object.behavior == ObjectData::Behavior::NONE) {
828
828
object.reason = " ParallelToEgoLane" ;
829
829
return false ;
You can’t perform that action at this time.
0 commit comments