Skip to content

Commit

Permalink
rebase commom tools
Browse files Browse the repository at this point in the history
Signed-off-by: jack.song <[email protected]>
  • Loading branch information
shulanbushangshu committed Dec 17, 2024
1 parent 2e899d7 commit dd6dacc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion common/autoware_component_interface_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ rclcpp_components_register_node(${PROJECT_NAME}
EXECUTABLE service_log_checker_node
)


if(BUILD_TESTING)
ament_add_ros_isolated_gtest(test_${PROJECT_NAME}
test/test_autoware_component_interface_tools.cpp
Expand Down
4 changes: 0 additions & 4 deletions common/autoware_component_interface_tools/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
<test_depend>diagnostic_updater</test_depend>
<test_depend>autoware_testing</test_depend>
<test_depend>ament_index_python</test_depend>
<test_depend>fake_test_node</test_depend>
<test_depend>ament_cmake_gtest</test_depend>



<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@
#include <rclcpp_components/register_node_macro.hpp>
#include <memory>
#include <string>

using ServiceLog = tier4_system_msgs::msg::ServiceLog;
using DiagnosticArray = diagnostic_msgs::msg::DiagnosticArray;
using ServiceLogChecker = autoware::component_interface_tools::ServiceLogChecker;
using namespace rclcpp;

TEST(ServiceCheckerTest, ServiceChecker)
{

class PubManager : public rclcpp::Node
{
public:
Expand All @@ -53,7 +52,7 @@ TEST(ServiceCheckerTest, ServiceChecker)
rclcpp::init(0, nullptr);
auto node_options = rclcpp::NodeOptions{};
auto test_target_node = std::make_shared<ServiceLogChecker>(node_options);
auto test_log = std::make_shared<PubManager>();
auto test_log = std::make_shared<PubManager>();
ServiceLog log;
log.type = 6;
log.name = "test";
Expand All @@ -62,5 +61,4 @@ TEST(ServiceCheckerTest, ServiceChecker)

while (!test_log->flag) {
}

}

0 comments on commit dd6dacc

Please sign in to comment.