Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why is ros image timestamp value so small?(Python)

Hello there, I'm trying to compute the delay of my program by printing the difference between time.time() and img.header.secs. As stated in the documentation both python's time and ros's timestamp are measured in seconds since epoch. However my timestamps are around 10 * e5 while time.time() is much much larger. Does anyone have any idea why the timestamp value is so small? I should mention that I'm running this program in docker. I send the images from docker to host through an intermediary node, which simply retransmits data, I run the image through a neural network and I return the output(which in my case, for testing, is the timestamp of the image). Is it because I'm using an intermediary node? I didn't find any other way of comunicating from docker to host.