ouster-lidar / ouster_example

Ouster, Inc. sample code
Other
448 stars 432 forks source link

some questions about ouster timestamp #584

Closed ZhangYaoll closed 1 month ago

ZhangYaoll commented 3 months ago

Describe your question I use the python SDK to get data from source file(.pcap & .json). In each packet, there are 3 kind of timestamps: capture_timestamp, timestamp(array with 16 elements) and host_timestamp. The first and last seem to be Unix timestamp, but what the second one is? How to translate it to UTC time? Besides, each packet has 16 columns, and timestamp array has 16 elements, does it mean in every lidar scan, points share a same timestamp?

Screenshots 20240326-160530 20240326-160555

Platform (please complete the following information):

Samahu commented 1 month ago

The timestamp array holds the measurement timestamps according to the sensor internal clock or the time from the external clock when using PTP timestamp mode.

Please refer to the Setting Sensor Time Source section for more information on this topic. Additionally, if you have other questions like this you can try to post them on the ouster community forum.