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

timestamp of SPAN-CPT in UrbanNav-HK-Data20200314 is not match with te image #55

Closed
Shujie-Hu opened this issue Jan 17, 2024 · 4 comments

Comments

@Shujie-Hu
Copy link

I extracted the images in the bag and the trajectory of SPAN-CPT with timestamp, but the motion state of the vehicle does not match the trajectory of SPAN-CPT.
0cd85167e2d7b1e6d499c29014a7a569
SPAN-CPT trajectory show vehicle is turning at gpsWIS 549992.0
20e825046fd76e1c8026d459358f071e
but image show vehicle is turning at gpsWIS 550010
Could you please tell me why this problem occurs?

@DarrenWong
Copy link
Member

Hello, can I know the UTC timestamp of the vehicle image? As the UTC and GPS time have 18 leaf seconds, it might possible have some problem when you compare the time directly. You can refer to this page for the conversion.

@Shujie-Hu
Copy link
Author

I have reconfirmed the code for extracting images from the bag, and I think that the timestamp of the image message header is UTC time and converted it to GPS time. Is there a problem with this process? I will take a screenshot of the code as follows:
QQ图片20240120154007
QQ图片20240120154017

@DarrenWong
Copy link
Member

Hey Shujie, your code is correct. Seems the rosbag timestamp indeed has a gap with the GPS time as no hardware time sync was applied in the pilot data. Suggest you can use the data collected in 2021 or refer to the timestamp of rosbag topic between /novatel_data/inspvax and /camera/image_color/header to adjust the time manual.

The UTC stamp I tested was based on Matlab function and https://www.labsat.co.uk/index.php/en/gps-time-calculator.
1584175590 (UTC)- > week: 2096, second: 550010 (GPS) -> the rosbag is (549993) at the same time.

@Shujie-Hu
Copy link
Author

Hey Shujie, your code is correct. Seems the rosbag timestamp indeed has a gap with the GPS time as no hardware time sync was applied in the pilot data. Suggest you can use the data collected in 2021 or refer to the timestamp of rosbag topic between /novatel_data/inspvax and /camera/image_color/header to adjust the time manual.

The UTC stamp I tested was based on Matlab function and https://www.labsat.co.uk/index.php/en/gps-time-calculator. 1584175590 (UTC)- > week: 2096, second: 550010 (GPS) -> the rosbag is (549993) at the same time.

Thanks for your response! I'll try again.

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