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

Unable to set 'speedup' running headless (ie. --gui) #89

Open
jacobperron opened this issue Apr 26, 2018 · 2 comments
Open

Unable to set 'speedup' running headless (ie. --gui) #89

jacobperron opened this issue Apr 26, 2018 · 2 comments

Comments

@jacobperron
Copy link

We can set the desired real-time factor (aka. speedup) by placing the following in our world file:

    # Set 10x real-time
    speedup 10 

But this seems to only work when running with the GUI enabled. As soon as I run headless (e.g. stage --gui my.world), the simulation seems to run as fast as possible (as if speedup 0 was set).

It would be nice to be able to set the speedup factor regardless of whether the GUI is enabled. This would allow running headless simulations with distributed systems (e.g. ROS) with processes that may not be able to keep up with how fast the simulation is progressing.

@rtv
Copy link
Owner

rtv commented Apr 26, 2018 via email

@tylertian123
Copy link

This would definitely be useful. I had an issue where the GUI was extremely slow on larger maps, but I was also using it with ROS so running headless at full speed would be unideal. I'm not sure if this project is still being maintained but I made a PR that adds support for speedup in headless. Hope someone finds this useful!

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

3 participants