Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
bmagyar authored Oct 9, 2024
1 parent 18f8ff5 commit 53ebb05
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions controller_manager/src/controller_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ void ControllerManager::init_resource_manager(const std::string & robot_descript
"'hardware_components_initial_state' parameter structure.");
rclcpp_lifecycle::State active_state(
State::PRIMARY_STATE_ACTIVE, hardware_interface::lifecycle_state_names::ACTIVE);
<<<<<<< HEAD
for (const auto & component : activate_components_on_start)
{
resource_manager_->set_component_state(component, active_state);
Expand All @@ -467,16 +466,13 @@ void ControllerManager::init_resource_manager(const std::string & robot_descript
{
rclcpp_lifecycle::State active_state(
State::PRIMARY_STATE_ACTIVE, hardware_interface::lifecycle_state_names::ACTIVE);
resource_manager_->set_component_state(component, active_state);
=======
if (
resource_manager_->set_component_state(component, active_state) ==
hardware_interface::return_type::ERROR)
{
throw std::runtime_error(
"Failed to set the initial state of the component : " + component + " to " +
active_state.label());
>>>>>>> 1c7a5d1 ([CM] Throw an exception when the components initially fail to be in the required state (#1729))
if (
resource_manager_->set_component_state(component, active_state) ==
hardware_interface::return_type::ERROR)
{
throw std::runtime_error(
"Failed to set the initial state of the component : " + component + " to " +
active_state.label());
}
}
}
Expand Down

0 comments on commit 53ebb05

Please sign in to comment.