Skip to content

Commit

Permalink
feat(traffic_light_fine_detector): add test function
Browse files Browse the repository at this point in the history
Signed-off-by: Shin-kyoto <[email protected]>
  • Loading branch information
Shin-kyoto committed May 30, 2024
1 parent db9db2a commit a542a98
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions perception/traffic_light_fine_detector/test/test_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,19 @@

#include "traffic_light_fine_detector/nodelet.hpp"

#include <gtest/gtest.h>

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)
Expand Down

0 comments on commit a542a98

Please sign in to comment.