Skip to content

Commit

Permalink
fixup! feat(avoidance): suppress unnecessary avoidance path
Browse files Browse the repository at this point in the history
  • Loading branch information
satoshi-ota committed Oct 19, 2023
1 parent 45a24b9 commit 77eb378
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2724,6 +2724,7 @@ void AvoidanceModule::updateDebugMarker(
addObjects(data.other_objects, std::string("NotNeedAvoidance"));
addObjects(data.other_objects, std::string("LessThanExecutionThreshold"));
addObjects(data.other_objects, std::string("TooNearToGoal"));
addObjects(data.other_objects, std::string("WaitingOtherVehicle"));
}

// shift line pre-process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ void filterTargetObjects(
lanelet::utils::getClosestCenterPose(overhang_lanelet, object_pose.position);
const auto yaw_deviation = std::abs(calcYawDeviation(closest_pose, object_pose));
if (yaw_deviation < THRESHOLD || yaw_deviation > M_PI - THRESHOLD) {
o.reason = AvoidanceDebugFactor::NOT_PARKING_OBJECT;
o.reason = "WaitingOtherVehicle";
data.other_objects.push_back(o);
continue;
}
Expand Down

0 comments on commit 77eb378

Please sign in to comment.