Skip to content

Commit

Permalink
add minus and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
h-ohta committed Jan 12, 2022
1 parent 920b874 commit f6933a9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,11 @@ ObjectDataArray AvoidanceModule::calcAvoidanceTargetObjects(
*planner_data_->dynamic_object, parameters_.threshold_speed_object_is_stopped);

// detection area filter
// when expanding lanelets, right_offset must be minus.
// This is because y axis is positive on the left.
const auto expanded_lanelets = lanelet::utils::getExpandedLanelets(
current_lanes, parameters_.detection_area_left_expand_dist,
parameters_.detection_area_right_expand_dist);
parameters_.detection_area_right_expand_dist * (-1.0));
const auto lane_filtered_objects_index =
util::filterObjectsByLanelets(objects_candidate, expanded_lanelets);

Expand Down

0 comments on commit f6933a9

Please sign in to comment.