From a542a98f1e66e0f594a462290b116818887a342b Mon Sep 17 00:00:00 2001 From: Shin-kyoto Date: Thu, 30 May 2024 19:39:10 +0900 Subject: [PATCH] feat(traffic_light_fine_detector): add test function Signed-off-by: Shin-kyoto --- .../test/test_nodelet.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/perception/traffic_light_fine_detector/test/test_nodelet.cpp b/perception/traffic_light_fine_detector/test/test_nodelet.cpp index 0912c32e2c204..99b90f8b74881 100644 --- a/perception/traffic_light_fine_detector/test/test_nodelet.cpp +++ b/perception/traffic_light_fine_detector/test/test_nodelet.cpp @@ -14,6 +14,19 @@ #include "traffic_light_fine_detector/nodelet.hpp" +#include + +sensor_msgs::msg::RegionOfInterest createMapBasedBbox( + const uint32_t x_offset, const uint32_t y_offset, const uint32_t width, const uint32_t height) +{ + sensor_msgs::msg::RegionOfInterest bbox; + bbox.x_offset = x_offset; + bbox.y_offset = y_offset; + bbox.width = width; + bbox.height = height; + return bbox; +} + tensorrt_yolox::Object createYoloxBbox( const int32_t x_offset, const int32_t y_offset, const int32_t width, const int32_t height, const float score, const int32_t type)