I am using two sensors each connected to different machine (each machine separately runs Ubuntu 16.04 and ROS Kinetic). When I echo topic on these two machines, I see the time stamps in header of messages are different. Even though they are running at the same time. So I faced issues in synchronizing topics recorded on different machines.
Machine 1:
sec 4583 | nsec 855689180
Machine 2:
sec 1570727234 | nsec 4864000
It seems that the time stamp on machine 1 is based on sim_time. Machine 2 is showing a Posix/Unix time stamp. So on machine 1, I issued the command rosparam set /use_sim_time false. Still when I fire the node on machine 1, time stamp starts from zero which is sim_time.
What I need is to get all time stamps in unix/posix format (10 digit).
P.S. the node running on Machine 1 is OS-1 Lidar Ros Driver
rosbagfiles are collected from two machines, even processing them on a third machine, writing an interface or having one of nodes subscribed to the topic of second node won't guarantee synchronization as it actually depends on if we have issuedrosbag recordcommand on two machines at the same time or not. – fhm Nov 06 '19 at 15:59bagfiles recorded on two machines, with the assumption that both machines are already synced with an external NTP server. Given that, I guess the time difference on two bag file would be withinmsornsscale. Correct me please, if I am wrong. – fhm Nov 06 '19 at 16:06