From ead5415e0a830760b38e3e6c8ea7273f09b3ed70 Mon Sep 17 00:00:00 2001 From: Vincent Belpois Date: Mon, 29 Apr 2024 23:52:34 +0200 Subject: [PATCH] changed position of return and logger --- .../hardware/actuators_rppico_h_i.cpp | 2 +- omnidrive_rppico/hardware/omnibot_pico_system.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actuators_rppico_hardware_interface/hardware/actuators_rppico_h_i.cpp b/actuators_rppico_hardware_interface/hardware/actuators_rppico_h_i.cpp index ceddfee..4c108ac 100644 --- a/actuators_rppico_hardware_interface/hardware/actuators_rppico_h_i.cpp +++ b/actuators_rppico_hardware_interface/hardware/actuators_rppico_h_i.cpp @@ -91,11 +91,11 @@ hardware_interface::CallbackReturn ActuatorsRpPicoHardware::on_init( } + } } RCLCPP_INFO(rclcpp::get_logger("ActuatorsRpPicoHardware"), "Successfully set up hardware interfaces"); return hardware_interface::CallbackReturn::SUCCESS; } -} std::vector ActuatorsRpPicoHardware::export_state_interfaces() { std::vector state_interfaces; diff --git a/omnidrive_rppico/hardware/omnibot_pico_system.cpp b/omnidrive_rppico/hardware/omnibot_pico_system.cpp index f0079d7..4c48e47 100644 --- a/omnidrive_rppico/hardware/omnibot_pico_system.cpp +++ b/omnidrive_rppico/hardware/omnibot_pico_system.cpp @@ -103,9 +103,9 @@ hardware_interface::CallbackReturn OmniDriveRpPicoHardware::on_init( joint.state_interfaces[1].name.c_str(), hardware_interface::HW_IF_VELOCITY); return hardware_interface::CallbackReturn::ERROR; } + } RCLCPP_INFO(rclcpp::get_logger("OmniDriveRpPicoHardware"), "Successfully set up hardware interfaces"); return hardware_interface::CallbackReturn::SUCCESS; - } } std::vector OmniDriveRpPicoHardware::export_state_interfaces()