Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed May 3, 2023
1 parent 3adf1fb commit 140761d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ class ResourceStorage
hardware.get_name().c_str(), interface.c_str());
}
}

}
return result;
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 140761d

Please sign in to comment.