From a119e9c8656db47a7c7d474295329b1e33708ae3 Mon Sep 17 00:00:00 2001 From: h-ohta Date: Mon, 15 May 2023 16:51:49 +0900 Subject: [PATCH 1/2] fix(fault_injection): fix build error in Humble --- .../src/fault_injection_node/fault_injection_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp b/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp index fcbf69d5032e5..10b5eb61f6849 100644 --- a/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp +++ b/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp @@ -65,7 +65,7 @@ FaultInjectionNode::FaultInjectionNode(rclcpp::NodeOptions node_options) void FaultInjectionNode::onSimulationEvents(const SimulationEvents::ConstSharedPtr msg) { RCLCPP_DEBUG( - this->get_logger(), "Received data: %s", rosidl_generator_traits::to_yaml(*msg).c_str()); + this->get_logger(), "Received data: %s",tier4_simulation_msgs::msg::to_yaml(*msg).c_str()); for (const auto & event : msg->fault_injection_events) { if (diagnostic_storage_.isEventRegistered(event.name)) { diagnostic_storage_.updateLevel(event.name, event.level); From f1b8886d7afed18a8b8a36624f9e9ee7ac65ec41 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 07:57:57 +0000 Subject: [PATCH 2/2] ci(pre-commit): autofix --- .../src/fault_injection_node/fault_injection_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp b/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp index 10b5eb61f6849..68f6965809785 100644 --- a/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp +++ b/simulator/fault_injection/src/fault_injection_node/fault_injection_node.cpp @@ -65,7 +65,7 @@ FaultInjectionNode::FaultInjectionNode(rclcpp::NodeOptions node_options) void FaultInjectionNode::onSimulationEvents(const SimulationEvents::ConstSharedPtr msg) { RCLCPP_DEBUG( - this->get_logger(), "Received data: %s",tier4_simulation_msgs::msg::to_yaml(*msg).c_str()); + this->get_logger(), "Received data: %s", tier4_simulation_msgs::msg::to_yaml(*msg).c_str()); for (const auto & event : msg->fault_injection_events) { if (diagnostic_storage_.isEventRegistered(event.name)) { diagnostic_storage_.updateLevel(event.name, event.level);