Skip to content

Commit

Permalink
feat: add test
Browse files Browse the repository at this point in the history
Signed-off-by: kosuke55 <[email protected]>
  • Loading branch information
kosuke55 committed Feb 28, 2024
1 parent df0b9ef commit 6093266
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 2 deletions.
9 changes: 9 additions & 0 deletions evaluator/perception_online_evaluator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ rclcpp_components_register_node(${PROJECT_NAME}_node

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

if(BUILD_TESTING)
ament_add_ros_isolated_gtest(test_${PROJECT_NAME}
test/test_perception_online_evaluator_node.cpp
)
target_link_libraries(test_${PROJECT_NAME}
${PROJECT_NAME}_node
)
endif()

ament_auto_package(
INSTALL_TO_SHARE
param
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class PerceptionOnlineEvaluatorNode : public rclcpp::Node
{
public:
explicit PerceptionOnlineEvaluatorNode(const rclcpp::NodeOptions & node_options);
~PerceptionOnlineEvaluatorNode() {};
~PerceptionOnlineEvaluatorNode(){};

/**
* @brief callback on receiving a dynamic objects array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ PerceptionOnlineEvaluatorNode::PerceptionOnlineEvaluatorNode(
{
using std::placeholders::_1;

google::InitGoogleLogging("map_based_prediction_node");
google::InitGoogleLogging("perception_online_evaluator_node");
google::InstallFailureSignalHandler();

objects_sub_ = create_subscription<PredictedObjects>(
Expand Down
Loading

0 comments on commit 6093266

Please sign in to comment.