From a24b8f635ffb62f758a31b28e1f8b58226f0d9ce Mon Sep 17 00:00:00 2001 From: KhalilSelyan Date: Thu, 30 May 2024 00:52:22 +0300 Subject: [PATCH] refactor: Remove commented out code for calculating 2D bounding box bottom line list Signed-off-by: KhalilSelyan --- .../object_polygon_detail.cpp | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/common/autoware_auto_perception_rviz_plugin/src/object_detection/object_polygon_detail.cpp b/common/autoware_auto_perception_rviz_plugin/src/object_detection/object_polygon_detail.cpp index 868914bce1bd5..4bbf44520ed44 100644 --- a/common/autoware_auto_perception_rviz_plugin/src/object_detection/object_polygon_detail.cpp +++ b/common/autoware_auto_perception_rviz_plugin/src/object_detection/object_polygon_detail.cpp @@ -744,32 +744,6 @@ void calc_bounding_box_orientation_line_list( calc_line_list_from_points(point_list, point_pairs, 2, points); } -// void calc_2d_bounding_box_bottom_line_list( -// const autoware_auto_perception_msgs::msg::Shape & shape, -// std::vector & points) -// { -// const double length_half = shape.dimensions.x * 0.5; -// const double width_half = shape.dimensions.y * 0.5; -// const double height_half = shape.dimensions.z * 0.5; -// geometry_msgs::msg::Point point; - -// // bounding box corner points -// // top surface, clockwise -// const double point_list[4][3] = { -// {length_half, width_half, -height_half}, -// {length_half, -width_half, -height_half}, -// {-length_half, -width_half, -height_half}, -// {-length_half, width_half, -height_half}, -// }; -// const int point_pairs[4][2] = { -// {0, 1}, -// {1, 2}, -// {2, 3}, -// {3, 0}, -// }; -// calc_line_list_from_points(point_list, point_pairs, 4, points); -// } - void calc_2d_bounding_box_bottom_line_list( const autoware_auto_perception_msgs::msg::Shape & shape, std::vector & points)