Skip to content

Commit

Permalink
feat(avoidance): suppress unnecessary avoidance path
Browse files Browse the repository at this point in the history
Signed-off-by: satoshi-ota <satoshi.ota928@gmail.com>
  • Loading branch information
satoshi-ota committed Oct 24, 2023
1 parent 0f9eb8a commit 7401250
Show file tree
Hide file tree
Showing 5 changed files with 244 additions and 168 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ bool isWithinCrosswalk(
bool isTargetObjectType(
const PredictedObject & object, const std::shared_ptr<AvoidanceParameters> & parameters);

bool isObjectOnRoadShoulder(
ObjectData & object, std::shared_ptr<RouteHandler> & route_handler,
std::shared_ptr<AvoidanceParameters> & parameters);

double calcShiftLength(
const bool & is_object_on_right, const double & overhang_dist, const double & avoid_margin);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ std::optional<double> getSignedDistanceFromBoundary(

Polygon2d toPolygon2d(const lanelet::ConstLanelet & lanelet);

Polygon2d toPolygon2d(const lanelet::BasicPolygon2d & polygon);

std::vector<Polygon2d> getTargetLaneletPolygons(
const lanelet::ConstLanelets & lanelets, const Pose & pose, const double check_length,
const std::string & target_type);
Expand Down
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("ParallelToEgoLane"));
}

// shift line pre-process
Expand Down
Loading

0 comments on commit 7401250

Please sign in to comment.