diff --git a/hardware_interface/src/resource_manager.cpp b/hardware_interface/src/resource_manager.cpp index d16fef6416..5ad3a45ff2 100644 --- a/hardware_interface/src/resource_manager.cpp +++ b/hardware_interface/src/resource_manager.cpp @@ -166,7 +166,6 @@ class ResourceStorage hardware.get_name().c_str(), interface.c_str()); } } - } return result; } @@ -310,7 +309,8 @@ class ResourceStorage if (result) { - RCUTILS_LOG_INFO_NAMED("resource_manager", "Hardware '%s' has been deactivated", hardware.get_name().c_str()); + RCUTILS_LOG_INFO_NAMED( + "resource_manager", "Hardware '%s' has been deactivated", hardware.get_name().c_str()); remove_all_command_interfaces_from_available_list(hardware.get_name()); // TODO(destogl): make all command interfaces unavailable that should be present only // when active (currently are all available) also at inactive @@ -1091,7 +1091,8 @@ HardwareReadWriteStatus ResourceManager::read( else if (ret_val == return_type::INACTIVE) { 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); } else @@ -1132,7 +1133,8 @@ HardwareReadWriteStatus ResourceManager::write( else if (ret_val == return_type::INACTIVE) { 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); } }