Skip to content

Commit

Permalink
test(traffic_light_fine_detector): add const to the arguments
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 29, 2024
1 parent c76b5fd commit 441a6ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions perception/traffic_light_fine_detector/test/test_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <gtest/gtest.h>

sensor_msgs::msg::RegionOfInterest createMapBasedBbox(
uint32_t x_offset, uint32_t y_offset, uint32_t width, uint32_t height)
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;
Expand All @@ -28,7 +28,8 @@ sensor_msgs::msg::RegionOfInterest createMapBasedBbox(
}

tensorrt_yolox::Object createYoloxBbox(
int32_t x_offset, int32_t y_offset, int32_t width, int32_t height, float score, int32_t type)
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)
{
tensorrt_yolox::Object bbox;
bbox.x_offset = x_offset;
Expand Down

0 comments on commit 441a6ff

Please sign in to comment.