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

Add hotkeys (also to help) #312

Merged
merged 2 commits into from
Aug 9, 2018
Merged

Conversation

Martin-Idel-SI
Copy link
Contributor

Closes #304

Also added hotkeys to help description to make discovery easy.
Note: This PR should probably only be merged when a corresponding PR is merged with ros-visualization/rviz

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Jun 19, 2018
@greimela-si
Copy link
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@Martin-Idel-SI Martin-Idel-SI force-pushed the feature/add_missing_hotkeys branch 2 times, most recently from 92f64cb to 9e1feb4 Compare June 21, 2018 14:20
@Martin-Idel-SI
Copy link
Contributor Author

CI after rebase:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@greimela-si
Copy link
Contributor

CI after rebase:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@@ -73,6 +73,8 @@ FocusTool::~FocusTool() = default;

void FocusTool::onInitialize()
{
shortcut_key_ = 'c';
Copy link
Member

Choose a reason for hiding this comment

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

Should this be in the constructor like the other two?

@@ -58,6 +58,8 @@ namespace tools
MeasureTool::MeasureTool()
: is_line_started_(false), length_(-1)
{
shortcut_key_ = 'n';
Copy link
Member

Choose a reason for hiding this comment

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

Should all of these be part of the member initialization section? : is_line_..., shurtcut_key_('n')?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that they are protected members of the rviz_common::Tool class, so I can't do that - I would have to provide another non-default constructor for Tool.

There is a comment for the Tool constructor saying that the shortcut_key_ member should be initialized in the constructor.

@Martin-Idel-SI
Copy link
Contributor Author

CI after rebase and fixes:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@wjwwood wjwwood merged commit 993d856 into ros2:ros2 Aug 9, 2018
@wjwwood wjwwood removed the in review Waiting for review (Kanban column) label Aug 9, 2018
@Martin-Idel-SI Martin-Idel-SI deleted the feature/add_missing_hotkeys branch August 9, 2018 07:24
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

Successfully merging this pull request may close these issues.

None yet

4 participants