-
Notifications
You must be signed in to change notification settings - Fork 43
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
Added Reset button to world_control #476
Conversation
Signed-off-by: ahcorde <ahcorde@gmail.com>
A super pedantic nit: Can we get a reset icon? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we get a reset icon?
+1, the square is misleading. At a glace, it looks like a stop button.
Also, since we are feature frozen, this will need to come in a minor release
RoundButton { | ||
id: stopButton | ||
objectName: "stopButton" | ||
visible: showReset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should reset only be visible if the sim is paused?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might want to reset when the simulation is running
/** | ||
* Reset | ||
*/ | ||
RoundButton { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a hovered tooltip that states what reset does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjcarroll I was thinking about adding an icon but I was trying to follow the same style which is an unicode geometric shape https://en.wikipedia.org/wiki/List_of_Unicode_characters. I'm open to suggestion. Anyhow the way that I implemented the |
How about using the same icon as refresh in
|
nice! thank you @jennuine |
Users may accidentally click this icon so another nice feature would be to have a confirmation dialog before resetting similar to #225 (with the ability to disable the dialog through the config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to also add the Ctrl+R
shortcut, and then we can close
@osrf-jenkins run tests please |
Signed-off-by: ahcorde <ahcorde@gmail.com>
|
Signed-off-by: ahcorde <ahcorde@gmail.com>
Codecov Report
@@ Coverage Diff @@
## gz-gui7 #476 +/- ##
===========================================
- Coverage 69.13% 69.03% -0.11%
===========================================
Files 44 44
Lines 4821 4831 +10
===========================================
+ Hits 3333 3335 +2
- Misses 1488 1496 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
friendly ping @jennuine @mjcarroll |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we leave the play/step buttons how they were and add the reset button to the right of the step button? And have the reset button be the same size as step?
what do you think about this ? |
Signed-off-by: ahcorde <ahcorde@gmail.com>
Looks great, thanks! How do you and @mjcarroll feel about the reset button being to the right of the step button? Reasons being:
|
Anyhow when you click in the |
changing layout doesn't seem to be working, the step botton uses a mouseclick area, it's tricky to change it |
If it is too difficult to fix, I think that the dialog confirmation is sufficiently safe. |
@osrf-jenkins run tests please! |
@osrf-jenkins run tests please! |
1 similar comment
@osrf-jenkins run tests please! |
Signed-off-by: ahcorde ahcorde@gmail.com
🎉 New feature
Summary
Added a reset button to the world Control plugin
Test
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.