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_sim_time Causes Very Long Sleep #10

Open
erichlf opened this issue Jan 16, 2024 · 1 comment
Open

use_sim_time Causes Very Long Sleep #10

erichlf opened this issue Jan 16, 2024 · 1 comment

Comments

@erichlf
Copy link

erichlf commented Jan 16, 2024

In the process of doing a bunch of things during the day I had set use_sim_time:=true and then later on I ran rosbaglive. When doing this it appeared that rosbaglive was not actually playing the data back. After some debugging it turns out that I was stuck at the line where rosbaglive sleeps until it is appropriate to play the next message. It turns out that this will be an extremely long time, since the first call to rospy.Time.now() will be 0 if use_sim_time is true. I think it would be good to check if this parameter is set and then at least log a warning, so that the user know they will likely wait for the rest of their life before the next message is played.

@DLu
Copy link
Owner

DLu commented Feb 23, 2024

This package hasn't had development in a good long while. I'm glad you've found use for it.

Please feel free to make a PR with the proper warning message.

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