ori-mrg / robotcar-dataset-sdk

Software Development Kit for the Oxford Robotcar Dataset
Other
262 stars 94 forks source link

Timestamp resolution/conversion (ROS) #48

Open ashnarayan13 opened 2 years ago

ashnarayan13 commented 2 years ago

Hi,

I want to convert the timestamps provided into ROS time stamp format (seconds, nanoseconds)

But if I use a standard conversion using rospy from_seconds() throws error with the timestamps.

If I try to convert the timestamp to human readable date time using python time.ctime, I get strange dates Thu Jan 9 23:25:05 44368617 Fri Jan 10 04:58:15 44368617 Fri Jan 10 10:32:04 44368617 Fri Jan 10 16:06:19 44368617 Fri Jan 10 21:40:35 44368617 Sat Jan 11 03:14:47 44368617

Anyone else have issues with this? I would like to know the resolution of the timestamps so I can split it into seconds/microseconds from the unix timestamp provided.