ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I believe the issue is that in NODE 2
you're not providing a remote node name:
http://docs.ros2.org/bouncy/api/rclcpp/classrclcpp_1_1_sync_parameters_client.html#ad7d9189ce6b12fbe0d23890ed61bb928
(it's the second argument after the handle to the local node)
Basically that defaults to ""
which implicitly means "this node", which I admit isn't very clear.
So yes, in NODE 2
you're listing parameters on yourself rather than NODE 1
.
Try this change in NODE 2
:
auto parameters_client = std::make_shared<rclcpp::SyncParametersClient>(node, "node_1");