share params between nodes ROS2
In ROS1 there you can read params from node namespace (prefixing param name with "~") and global namespace (prefixing param name with "/")
If understand the tutorials
https://index.ros.org/doc/ros2/Tutori...
and
https://index.ros.org/doc/ros2/Tutori...
correctly, for ROS2 every node has its own param server and name space. Params can be adjusted via launch file or command line. However, regardles of the prefix in cpp code, the node will query its own namespace.
Now, what would be the recommended pattern if 2 cpp nodes shall share a common parameter that must be known to both of them? Is there any way to avoid having 2 parameters in different namespaces with the same value?