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

/fix and /imu have different time stamps #87

Open
HHF111 opened this issue May 31, 2020 · 1 comment
Open

/fix and /imu have different time stamps #87

HHF111 opened this issue May 31, 2020 · 1 comment

Comments

@HHF111
Copy link

HHF111 commented May 31, 2020

The timestamps of /fix and /imu ros topics are far away from each other. How to solve that? Thanks!

@pjreed
Copy link
Contributor

pjreed commented Jun 3, 2020

The first thing you should do is check your computer's clock and make sure it's synchronized with a GPS time source somewhere. The timestamps in the headers for sensor_msgs::NavSatFix and sensor_msgs::Imu messages are based on the computer's clock when the message is generated. They can be adjusted if something is publishing std_msgs::Time messages to /gps_sync, but that's unlikely if you're not aware of it.

The timestamps in gps_common/GPSFix messages under status.header.stamp are based on the actual GPS clock, though, so they could differ if your computer's clock is not synced.

If your computer clock is synced and you're seeing the timestamps in the message headers be far away from each other, that could be a bug; could you record a serial capture log or a pcap file and a bag file with some example data and upload them?

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