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

Use SteadyTime instead of Time to avoid jumps back in time when using NTP clock #7

Open
alvarovillena opened this issue Feb 27, 2023 · 1 comment

Comments

@alvarovillena
Copy link

As reported by @iportolesrb , there is a timing issue when we set adjust_ros_timestamp to true in PCs with NTP clock adjustment.
ROS time uses the system clock, which can be moved backwards by NTP or a similar time synchronization protocol. We are using ROS time to calculate the appropriate timestamp, depending on the sensor timestamp, the ROS timestamp, and the average difference of times for the last messages.
Whenever the system clock is moved backwards, the topic will be published with a previous timestamp. This should not happen and breaks some systems (such as our 3D SLAM system).

Some references:

Current behavior:
Screenshot from 2023-02-27 11-53-39
Screenshot from 2023-02-27 11-53-06

@EdCheriee
Copy link

Have you ever found a workaround for this? We have a similar issue with the time jumps when using default NTP synchronisation on ubuntu.

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