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

Improved Custom positions support for yarpmotorgui #1160

Merged
merged 3 commits into from
Apr 20, 2017

Conversation

francesco-romano
Copy link
Collaborator

Changed custom positions support in the motorgui.
To implement this change I needed to change the .ini syntax regarding the custom positions (which was anyway new and never pushed to master).

The proposed changes have the following impact on the use of the motorgui:

  • the number of custom positions is no more hardcoded. This means that it is possible to not specify any custom positions (and no options are shown in the menus) or to add a variable number of positions.
  • the custom positions are now named instead of numbered. This simplifies the executions of custom positions if more then one are specified in the ini file.
  • Added also the menu option in the single part menubar menu.

For @robotology/codyco-developers this means that it is now possible to have a single ini file with the most often used configurations.

See this screenshots for an example:

screen shot 2017-04-02 at 12 14 16

screen shot 2017-04-02 at 12 14 27

Updated also release notes and changed the yarpmotorgui doxygen documentation section regarding the home position to document the new .ini syntax

cc @randaz81
cc @DanielePucci @gabrielenava @traversaro

@traversaro
Copy link
Member

It seems a great improvement in the usability of the feature.

@francesco-romano
Copy link
Collaborator Author

Wait a second before merging.
I am trying to add shortcuts to the menu options...

@francesco-romano
Copy link
Collaborator Author

Done. Shortcuts added

@francesco-romano
Copy link
Collaborator Author

@randaz81 do you think we can merge this PR?

Copy link
Member

@randaz81 randaz81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice feature!

@randaz81
Copy link
Member

The branch needs just a quick rebase and it's fine! Awesome work!

Changed the ini syntax on how to specify custom positions.
Now the number of custom positions is no more hardcoded.
If no custom positions are defined in the ini file, no custom positions options are created in the Menu.
Instead, a submenu option is created and populated with the correct number of custom positions.

Added also menu option for the custom positons in the single part menubar.

Additionally, now the custom positions are named, so it is easier in the GUI to find and launch the correct custom positions when more than one is specified in the ini
Only the first 9 custom positions have associated shortcuts (numbered from 1 to 9)
To command a global (all joints) position the shortcut is CTRL + META + [num]
For a single part the ALT modified must be added
@francesco-romano
Copy link
Collaborator Author

@randaz81
thanks 😄

rebase done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants