Skip to content

Commit 6093266

Browse files
committed
feat: add test
Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
1 parent df0b9ef commit 6093266

File tree

4 files changed

+531
-2
lines changed

4 files changed

+531
-2
lines changed

evaluator/perception_online_evaluator/CMakeLists.txt

+9
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ rclcpp_components_register_node(${PROJECT_NAME}_node
2828

2929
target_link_libraries(${PROJECT_NAME}_node glog::glog)
3030

31+
if(BUILD_TESTING)
32+
ament_add_ros_isolated_gtest(test_${PROJECT_NAME}
33+
test/test_perception_online_evaluator_node.cpp
34+
)
35+
target_link_libraries(test_${PROJECT_NAME}
36+
${PROJECT_NAME}_node
37+
)
38+
endif()
39+
3140
ament_auto_package(
3241
INSTALL_TO_SHARE
3342
param

evaluator/perception_online_evaluator/include/perception_online_evaluator/perception_online_evaluator_node.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class PerceptionOnlineEvaluatorNode : public rclcpp::Node
5050
{
5151
public:
5252
explicit PerceptionOnlineEvaluatorNode(const rclcpp::NodeOptions & node_options);
53-
~PerceptionOnlineEvaluatorNode() {};
53+
~PerceptionOnlineEvaluatorNode(){};
5454

5555
/**
5656
* @brief callback on receiving a dynamic objects array

evaluator/perception_online_evaluator/src/perception_online_evaluator_node.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ PerceptionOnlineEvaluatorNode::PerceptionOnlineEvaluatorNode(
4343
{
4444
using std::placeholders::_1;
4545

46-
google::InitGoogleLogging("map_based_prediction_node");
46+
google::InitGoogleLogging("perception_online_evaluator_node");
4747
google::InstallFailureSignalHandler();
4848

4949
objects_sub_ = create_subscription<PredictedObjects>(

0 commit comments

Comments
 (0)