From 39e705065a7d92a9a57bebe146b418fdacd7ac23 Mon Sep 17 00:00:00 2001 From: "Dr. Denis" Date: Fri, 2 Feb 2024 17:44:32 +0100 Subject: [PATCH] Correct forgoten state definition Co-authored-by: Felix Exner (fexner) --- controller_manager/src/controller_manager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index faa8c0ec64..82348883ad 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -422,6 +422,8 @@ void ControllerManager::init_resource_manager(const std::string & robot_descript // activate all other components for (const auto & [component, state] : components_to_activate) { + rclcpp_lifecycle::State active_state( + State::PRIMARY_STATE_ACTIVE, hardware_interface::lifecycle_state_names::ACTIVE); resource_manager_->set_component_state(component, active_state); } }