-
Notifications
You must be signed in to change notification settings - Fork 43
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
Is there a way to get images' timestamps in the Unix time? #31
Comments
Hi @maciej-3, in general, ROS drivers will report messages in "ROS Time", which is the same as the system time of the computer running ROS. So if your computer's time is correct, then it should already be in Unix time. |
Many thanks for your reply. The only thing is that the ROS time from this driver is not the exact time of image acquisition because it does not come from the camera itself. It is simply the time of the execution of the next line of code after acquiring an image from the camera:
This might be a bit of a problem for high-precision and dynamic tasks, especially when the camera must be synchronised with other sensors (in my case, it is a lidar). What I meant in my first post was that if you do Is there any way to get the precise Unix timestamp from the exact moment when the image was taken (and not from the time when the next line of code after the image acquisition was executed or the time measured from the moment when the camera was plugged into the PC)? |
Hi @maciej-3, thanks for clarifying. I'm not super familiar with the Vimba API/library unfortunately, but it seems like the Based on this other comment, you may need to setup PTP sync first, then the |
Closing due to age, please re-open if there is still something to discuss. |
Is there a way to get images' timestamps in the [Unix time]https://en.wikipedia.org/wiki/Unix_time)?
My USB camera seems to measure time (in python -
frame.get_timestamp()
) since plugged into the PC.The text was updated successfully, but these errors were encountered: