From 3c15819696b156ad745f69d70adb92d133bf3f78 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 21:26:03 +0200 Subject: [PATCH] Fix dependencies for source build (#1533) (#1536) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Don't use std::system call inside test * Give launch_ros as explicit dependency * Test the source build on this branch * Revert "Test the source build on this branch" This reverts commit 9884b112257fc2626d1d03ba523d02247c6f258e. (cherry picked from commit e2600490481092ba2709c5ac9cb1b36b1032a4bc) Co-authored-by: Christoph Fröhlich --- controller_interface/test/test_controller_interface.cpp | 3 ++- joint_limits/package.xml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/controller_interface/test/test_controller_interface.cpp b/controller_interface/test/test_controller_interface.cpp index f27fc43283..567efe52ff 100644 --- a/controller_interface/test/test_controller_interface.cpp +++ b/controller_interface/test/test_controller_interface.cpp @@ -82,7 +82,8 @@ TEST(TestableControllerInterface, setting_update_rate_in_configure) ASSERT_EQ(controller.get_update_rate(), 2812u); // Test updating of update_rate parameter - EXPECT_EQ(std::system("ros2 param set /testable_controller_interface update_rate 623"), 0); + auto res = controller.get_node()->set_parameter(rclcpp::Parameter("update_rate", 623)); + EXPECT_EQ(res.successful, true); // Keep the same update rate until transition from 'UNCONFIGURED' TO 'INACTIVE' does not happen controller.configure(); // No transition so the update rate should stay intact ASSERT_NE(controller.get_update_rate(), 623u); diff --git a/joint_limits/package.xml b/joint_limits/package.xml index ef489d06f6..c0ebb8de1a 100644 --- a/joint_limits/package.xml +++ b/joint_limits/package.xml @@ -18,6 +18,7 @@ rclcpp_lifecycle urdf + launch_ros launch_testing_ament_cmake ament_cmake_gtest