How is the data synchronized while using multiple ROS nodes ?
How to be sure that which time stamps would be used amongst different nodes for analyzing the data ? There would definitely be delays in communication. How can we keep a synchronized time stamp ?
Your first question is unclear. Can you provide details about your setup (publisher and subscribers)?
@mohsen lets say i am using it for a Virtual Testing application for vehicles. In that case, lets say I have 2 nodes, namely
Drivetrain
(including everything in a car except engine) andengine
. No lets say to drive a vehicle, engine would give a torque which would go through the drivetrain ctd.and move the vehicle. In return the drivetrain would give a speed in response to engine's torque to make a closed loop. Now lets say these 2 modes are running on different machines but are in a closed loop. Now to analyze the results, which time stamps would be used ?