Skip to content

Commit

Permalink
Use global namespace for parameter events subscription topic
Browse files Browse the repository at this point in the history
Similar to #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 <[email protected]>
  • Loading branch information
jacobperron committed Aug 3, 2020
1 parent d378cff commit 511cc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/parameter_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class AsyncParametersClient
{
return rclcpp::create_subscription<rcl_interfaces::msg::ParameterEvent>(
node,
"parameter_events",
"/parameter_events",
qos,
std::forward<CallbackT>(callback),
options);
Expand Down

0 comments on commit 511cc11

Please sign in to comment.