Skip to content

Commit

Permalink
Use global namespace for parameter events subscription topic (#1257)
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 <jacob@openrobotics.org>
  • Loading branch information
jacobperron committed Aug 4, 2020
1 parent 7c84b72 commit f2cd2fb
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 f2cd2fb

Please sign in to comment.