Stage icon indicating copy to clipboard operation
Stage copied to clipboard

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

Open jacobperron opened this issue 6 years ago • 1 comments

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.

jacobperron avatar Apr 26 '18 01:04 jacobperron

That’s an interesting use case I’ve never considered. Will think about it.

On Wed, Apr 25, 2018 at 6:03 PM Jacob Perron [email protected] wrote:

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.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rtv/Stage/issues/89, or mute the thread https://github.com/notifications/unsubscribe-auth/AACCnbW-GNXVi4ykjswQ8RA6sbo0cLFoks5tsRzkgaJpZM4TkXj2 .

-- Sent from a mobile gadget

rtv avatar Apr 26 '18 02:04 rtv