Skip to content

Commit

Permalink
feat: skip orientation unavailable objects
Browse files Browse the repository at this point in the history
Signed-off-by: yoshiri <[email protected]>
  • Loading branch information
YoshiRi committed May 23, 2024
1 parent f5b5966 commit 81d0024
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ bool ObjectLaneletFilterNode::filterObject(
}

// 2. check if objects velocity is the same with the lanelet direction
if (filter_settings_.lanelet_direction_filter) {
const bool orientation_not_available =
transformed_object.kinematics.orientation_availability ==
autoware_auto_perception_msgs::msg::ObjectFeature::UNAVAILABLE;
if (filter_settings_.lanelet_direction_filter && !orientation_not_available) {
const bool is_same_direction =
isSameDirectionWithLanelets(intersected_road_lanelets, transformed_object) ||
isSameDirectionWithLanelets(intersected_shoulder_lanelets, transformed_object);
Expand Down

0 comments on commit 81d0024

Please sign in to comment.