Synchronizing different nodes on different machines
What would be the best approach to synchronize two ROS2 nodes (i.e. a common shared clock/time) on two different machines, connected over a wireless network?
At present I've implemented a third node on one of the machines providing a clock, but apparently there is a slight delay/latency of 5-20ms on the other machine, which is variable, and thus hinders the accuracy of time readings.
Is this delay caused/affected by ROS or solely by the network configuration? Is there any tool built into ROS that can help with precise syncrhonization?