How to check that two topics are synced?
Right now, I'm recording the two topics using rosbag and seeing if the messages are aligned. But, I'm not sure if rosbag respects the original timestamps or gives a new timestamp based on when it received the message.
Can you clarify what timestamp you are asking about?
header.stamp of the message. I had recorded /camera/depth/image_raw and /camera/rgb/image_raw from freenect, and expected these 2 sensor_msgs/Image topics to have the same time stamp, but on checking them with rqt_bag I found that the messages were misaligned.