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

rqt_bag: timestamp printing issue #6

Closed
ablasdel opened this issue Jan 8, 2013 · 0 comments
Closed

rqt_bag: timestamp printing issue #6

ablasdel opened this issue Jan 8, 2013 · 0 comments
Labels

Comments

@ablasdel
Copy link
Contributor

ablasdel commented Jan 8, 2013

rxbag used to print raw timestamp incorrectly so it still does:

In the timeline status bar, rxbag incorrectly prints the nanosecond portion of the raw timestamp. The code currently does this:
'%d.%s' % (self.timeline.playhead.secs, str(self.timeline.playhead.nsecs)[:3])

which will take the 3 highest digits of nanoseconds and print them like a decimal. This is meaningless. A better solution is attached that does this:
'%.3fs' % self.timeline.playhead.to_sec()

which is also used in the same function for printing the elapsed time.

If you were looking at the raw timestamp, it could be non-monotonic because of this bug, falsely indicating that certain topics arrived after other topics even though the visualization is correct.

For more information see the trac ticket.

migration of of trac ticket:
https://code.ros.org/trac/ros/ticket/3824

eacousineau pushed a commit to eacousineau/rqt_common_plugins that referenced this issue May 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant