From 112fd588a8dd389436bd2e0d5e9313df05839587 Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Mon, 15 May 2023 20:12:44 +0200 Subject: [PATCH] Code formatting --- hardware_interface/src/resource_manager.cpp | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hardware_interface/src/resource_manager.cpp b/hardware_interface/src/resource_manager.cpp index 77a600852f..cd990ca872 100644 --- a/hardware_interface/src/resource_manager.cpp +++ b/hardware_interface/src/resource_manager.cpp @@ -1082,16 +1082,17 @@ HardwareReadWriteStatus ResourceManager::read( else if (ret_val == return_type::READ_ONLY) { using lifecycle_msgs::msg::State; - rclcpp_lifecycle::State state(State::PRIMARY_STATE_INACTIVE, lifecycle_state_names::INACTIVE); + rclcpp_lifecycle::State state( + State::PRIMARY_STATE_INACTIVE, lifecycle_state_names::INACTIVE); set_component_state(component.get_name(), state); } // If desired: automatic re-activation. We could add a flag for this... - //else - //{ - //using lifecycle_msgs::msg::State; - //rclcpp_lifecycle::State state(State::PRIMARY_STATE_ACTIVE, lifecycle_state_names::ACTIVE); - //set_component_state(component.get_name(), state); - //} + // else + // { + // using lifecycle_msgs::msg::State; + // rclcpp_lifecycle::State state(State::PRIMARY_STATE_ACTIVE, lifecycle_state_names::ACTIVE); + // set_component_state(component.get_name(), state); + // } } }; @@ -1124,7 +1125,8 @@ HardwareReadWriteStatus ResourceManager::write( else if (ret_val == return_type::READ_ONLY) { using lifecycle_msgs::msg::State; - rclcpp_lifecycle::State state(State::PRIMARY_STATE_INACTIVE, lifecycle_state_names::INACTIVE); + rclcpp_lifecycle::State state( + State::PRIMARY_STATE_INACTIVE, lifecycle_state_names::INACTIVE); set_component_state(component.get_name(), state); } }