Skip to content

Commit a24b8f6

Browse files
author
KhalilSelyan
committed
refactor: Remove commented out code for calculating 2D bounding box bottom line list
Signed-off-by: KhalilSelyan <khalil@leodrive.ai>
1 parent 0de9203 commit a24b8f6

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

common/autoware_auto_perception_rviz_plugin/src/object_detection/object_polygon_detail.cpp

-26
Original file line numberDiff line numberDiff line change
@@ -744,32 +744,6 @@ void calc_bounding_box_orientation_line_list(
744744
calc_line_list_from_points(point_list, point_pairs, 2, points);
745745
}
746746

747-
// void calc_2d_bounding_box_bottom_line_list(
748-
// const autoware_auto_perception_msgs::msg::Shape & shape,
749-
// std::vector<geometry_msgs::msg::Point> & points)
750-
// {
751-
// const double length_half = shape.dimensions.x * 0.5;
752-
// const double width_half = shape.dimensions.y * 0.5;
753-
// const double height_half = shape.dimensions.z * 0.5;
754-
// geometry_msgs::msg::Point point;
755-
756-
// // bounding box corner points
757-
// // top surface, clockwise
758-
// const double point_list[4][3] = {
759-
// {length_half, width_half, -height_half},
760-
// {length_half, -width_half, -height_half},
761-
// {-length_half, -width_half, -height_half},
762-
// {-length_half, width_half, -height_half},
763-
// };
764-
// const int point_pairs[4][2] = {
765-
// {0, 1},
766-
// {1, 2},
767-
// {2, 3},
768-
// {3, 0},
769-
// };
770-
// calc_line_list_from_points(point_list, point_pairs, 4, points);
771-
// }
772-
773747
void calc_2d_bounding_box_bottom_line_list(
774748
const autoware_auto_perception_msgs::msg::Shape & shape,
775749
std::vector<geometry_msgs::msg::Point> & points)

0 commit comments

Comments
 (0)