Skip to content

Commit

Permalink
Code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed May 15, 2023
1 parent 2dffe5d commit 112fd58
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
// }
}
};

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

0 comments on commit 112fd58

Please sign in to comment.