Skip to content

Commit

Permalink
added edge case to iscarlikevehicle
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshi Ri <[email protected]>
  • Loading branch information
YoshiRi committed Oct 17, 2022
1 parent ba48343 commit 7bdb3a3
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ TEST(object_classification, test_isCarLikeVehicle)
classification.push_back(createObjectClassification(ObjectClassification::BICYCLE, 0.8));
EXPECT_FALSE(isCarLikeVehicle(classification));
}

// Edge case when car and non-car label has same probability
{
std::vector<autoware_auto_perception_msgs::msg::ObjectClassification> classification;
classification.push_back(createObjectClassification(ObjectClassification::MOTORCYCLE, 0.8));
classification.push_back(createObjectClassification(ObjectClassification::CAR, 0.8));
EXPECT_FALSE(isCarLikeVehicle(classification));
}

} // TEST isCarLikeVehicle

// TEST isLargeVehicle
Expand Down

0 comments on commit 7bdb3a3

Please sign in to comment.