From d971dfc2203508957ebd0f0bc0f2f6a90945a241 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Mon, 15 Jan 2024 07:38:56 +0000 Subject: [PATCH] Fix test classes --- controller_manager/test/test_hardware_management_srvs.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/controller_manager/test/test_hardware_management_srvs.cpp b/controller_manager/test/test_hardware_management_srvs.cpp index 9fa32b7898..37e38339ba 100644 --- a/controller_manager/test/test_hardware_management_srvs.cpp +++ b/controller_manager/test/test_hardware_management_srvs.cpp @@ -385,7 +385,9 @@ class TestControllerManagerHWManagementSrvsWithoutParams "Unable to initialize resource manager, no robot description found."); } - cm_->init_resource_manager(robot_description); + auto msg = std_msgs::msg::String(); + msg.data = robot_description; + cm_->robot_description_callback(msg); SetUpSrvsCMExecutor(); } @@ -442,7 +444,9 @@ class TestControllerManagerHWManagementSrvsOldParameters "Unable to initialize resource manager, no robot description found."); } - cm_->init_resource_manager(robot_description); + auto msg = std_msgs::msg::String(); + msg.data = robot_description; + cm_->robot_description_callback(msg); SetUpSrvsCMExecutor(); }