How to synchronize data between 2 different ROS nodes?

asked 2021-04-26 16:27:49 -0600

mch gravatar image

updated 2021-04-26 16:28:22 -0600

Note: Q is not about time/timestamps synchronization. It's only about internal data.

Example: I have a node (A) running on a local machine under ROS. Node has internal data structure stored in memory. Let's say it's just a cpp std::unsorted_map. Now somewhere in the same local network on the other ROS machine I have another node (B). And B also has std::unsorted_map. Now I want 2 maps were always synced between 2 nodes so that they always were the same.

I know I can write a code to do it myself, but I'd like to get a hint for existing lib/framework/package allowing me to do that.

edit retag flag offensive close merge delete