Skip to content

Commit

Permalink
fix(behavior_path): add minus and comments (#246)
Browse files Browse the repository at this point in the history
h-ohta authored Jan 12, 2022
1 parent 920b874 commit 3e27b12
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 3e27b12

Please sign in to comment.