Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why do we need to perform time synchronization? #236

Open
kerwin112ME opened this issue Aug 7, 2020 · 1 comment
Open

Why do we need to perform time synchronization? #236

kerwin112ME opened this issue Aug 7, 2020 · 1 comment

Comments

@kerwin112ME
Copy link

I'm new to VIO, and I am confusing that why do we need time synchronization?
Aren't the timestamps given by ROS system of all topics already time-synchronized?
Thanks!

@m0oz
Copy link

m0oz commented Jul 14, 2021

ROS messages have timestamps, yes.

But the accuracy of this timestamps can only be so good as the time reference that they are created with.

For example, consider what a global shutter camera does when capturing images:

  • Open shutter
  • Integrate charges on the individual pixel diodes of the image sensor
  • Close shutter (Ideally we want to have the timestamp exactly in the middle between opening and closing the shutter)
  • Step through the image lines and read out the charges
  • Send an interrupt to the CPU to signal it has a new frame
  • Send the actual data over USB, MIPI-CSI or whatever interface
  • Data gets written to memory of the computer
  • ROS node that send image messages might now read this data and create a timestamp based on when it received the data. But that timestamp is not reflecting when the camera shutter was actually open

Without physically adding a wire that signals "The shutter is now open/close", there is no way that the computer can now exactly how much time passed since the image was taken to when it receives the interrupt or when it is written to memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants