From 0e8450940f2c7260b422011367afe985fc0e9d2b Mon Sep 17 00:00:00 2001 From: Jacob Perron Date: Fri, 6 Nov 2020 09:37:02 -0800 Subject: [PATCH] Use global namespace for parameter events subscription topic (#1257) (#1261) Similar to https://github.com/ros2/rclcpp/pull/929, but for the subscription. This fixes an issue listening to parameter events from a remote node when the local node has a different namespace. Originally reported here: https://answers.ros.org/question/358170/parameter-events-on-foxy/ Signed-off-by: Jacob Perron --- rclcpp/include/rclcpp/parameter_client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/include/rclcpp/parameter_client.hpp b/rclcpp/include/rclcpp/parameter_client.hpp index 0305529..a1367dd 100644 --- a/rclcpp/include/rclcpp/parameter_client.hpp +++ b/rclcpp/include/rclcpp/parameter_client.hpp @@ -177,7 +177,7 @@ public: { return rclcpp::create_subscription( node, - "parameter_events", + "/parameter_events", qos, std::forward(callback), options);