diff --git a/controller_manager/src/controller_manager.cpp b/controller_manager/src/controller_manager.cpp index 81792c9e7d..fc3503d5bb 100644 --- a/controller_manager/src/controller_manager.cpp +++ b/controller_manager/src/controller_manager.cpp @@ -284,9 +284,8 @@ ControllerManager::ControllerManager( "[Deprecated] Passing the robot description parameter directly to the control_manager node " "is deprecated. Use '~/robot_description' topic from 'robot_state_publisher' instead."); init_resource_manager(robot_description); + init_services(); } - - init_services(); } ControllerManager::ControllerManager( @@ -311,7 +310,6 @@ ControllerManager::ControllerManager( { subscribe_to_robot_description_topic(); } - init_services(); } void ControllerManager::subscribe_to_robot_description_topic() @@ -343,6 +341,7 @@ void ControllerManager::robot_description_callback(const std_msgs::msg::String & return; } init_resource_manager(robot_description.data.c_str()); + init_services(); } catch (std::runtime_error & e) {