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

Simulation run/stop toggle via space bar #10068

Closed
rjmaris opened this issue Jan 29, 2022 · 10 comments
Closed

Simulation run/stop toggle via space bar #10068

rjmaris opened this issue Jan 29, 2022 · 10 comments
Assignees
Milestone

Comments

@rjmaris
Copy link

rjmaris commented Jan 29, 2022

As an aid in quick stop and restart of a running simulation, the space bar could serve good value when a quick pause is requesten upon viewing a specific behaviour.


If possible, upload an example that shows your problem.

SUMO-version: 1.12

operating system: Linux Mint 20.4

@namdre
Copy link
Contributor

namdre commented Jan 29, 2022

The hotkeys ctrl+a, ctrl+s, ctrl+d are available for this. See the 'Simulation' Menu for reference.
Also, breakpoints can be useful for stopping the simulation at a time of interest: https://sumo.dlr.de/docs/sumo-gui.html#breakpoints

@namdre namdre closed this as completed Jan 29, 2022
@rjmaris
Copy link
Author

rjmaris commented Jan 29, 2022

I know about these hotkeys. It's just from my experience with e.g. electronic measuring/capture systems that it's very handy to suddenly be able to hit the space key if you see an event where you want to freeze.
Just try to do that with CTRL-S. You'd need to keep two finger at a resting position onto those keys. The space key can be hit in a sorf of Miss Piggy manner. Clash!
(of course as a toggle start-pause-resume)

@namdre
Copy link
Contributor

namdre commented Jan 29, 2022

I see your point and will consider adding the space key.
Far more often than start/stop I'm using breakpoints since there are long stretches of "boring" simulation vs short interesting parts where I need to rewind and step through them.

@rjmaris
Copy link
Author

rjmaris commented Jan 29, 2022

The breakpoint concept is familiar, however in a code debug environment. In the SUMO case, I just discovered why I found some breakpoints in the table. The reason (from the doc): "by clicking on an underlined time value in the message/warning log area ..."
Since only two input fields are present in the sumo-gui that only accepts numbers & dec. point, plain alpha keybindings should be available for handy&quick control of the simulation. E.g. single step via the 's' key, besides CTRL-d.

BTW: I had to tag this issue as "feature request" or the like.

@namdre namdre reopened this Jan 30, 2022
@namdre namdre self-assigned this Feb 1, 2022
@namdre namdre added this to the 1.13.0 milestone Feb 1, 2022
@namdre
Copy link
Contributor

namdre commented Feb 1, 2022

Your suggestion received overwhelming support

@rjmaris
Copy link
Author

rjmaris commented Feb 3, 2022

Well, one could also add other key bindings... e.g.

  • B for set beakpoint at the current time point
  • R for reverse single step (if possible), or the A-key because it is just on the left side of the S (step forward) key.
  • L for set loop start (could be used together with a breakpoint e.g. 30 seconds in future)
  • Ctrl-L for resume from loop start point

Update (edit):

  • PgUp&Dn for delay changing e.g. according to following scheme: 0-20-50-125-250-500-1000 (PgUp lowers the delay: speed up)
  • TAB to increase traffic scale; Ctrl-TAB to decrease it (e.g. 0.1 steps)

@rjmaris
Copy link
Author

rjmaris commented Feb 9, 2022

If all those changes would be implemented, almost full keyboard control is possible. That permits it to add full screen mode as well (F11). This is especially helpful since the graphics does not support anti-aliasing (as far as I know, OSes only control aliasing properties of text). For this reason zooming in is required more often in order so see details better.

namdre added a commit that referenced this issue Feb 22, 2022
…to ctr+a, ctrl+s, ctrl+d. refs #10068. Thanks to rjmaris
@namdre
Copy link
Contributor

namdre commented Feb 22, 2022

regarding your other suggestsions

  • B for adding a breakpoint is a good idea
  • reversing is not possible at the moment.
  • looping might be made possible via allow jumping forward and backward to a breakpoint #10198
  • PgUp and PgDown are currently used for scrolling but they would indeed be more useful for delay control let pgdup/pgdown change delay #10199
  • I'm not convinced about the usefulness for a scale-hotkey
  • full-screen mode is available via Ctrl+f (though there are some issues with returning from full-screen on linux

@rjmaris
Copy link
Author

rjmaris commented Feb 22, 2022 via email

@namdre
Copy link
Contributor

namdre commented Mar 23, 2022

Space should be working now, For the breakpoint hotkey, see #10400

@namdre namdre closed this as completed Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants