Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(multi_object_tracker): make sure smallest unknown footprint is 0.3 #6618

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(multi_object_tracker): make sure there are enough points to calc iou
Signed-off-by: Mehmet Emin BAŞOĞLU <mehmeteminbasoglu@hotmail.com>
  • Loading branch information
mebasoglu committed Mar 19, 2024
commit ac5c65a508a18ef9ba20086f849c7b7c01ed5713
Original file line number Diff line number Diff line change
@@ -65,6 +65,12 @@ inline double getUnionArea(const Polygon2d & source_polygon, const Polygon2d & t
template <class T1, class T2>
double get2dIoU(const T1 source_object, const T2 target_object, const double min_union_area = 0.01)
{
if (
source_object.shape.type == autoware_auto_perception_msgs::msg::Shape::POLYGON &&
source_object.shape.footprint.points.size() < 3) {
return 0.0;
}

const auto source_polygon = tier4_autoware_utils::toPolygon2d(source_object);
const auto target_polygon = tier4_autoware_utils::toPolygon2d(target_object);

Loading