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

Migrate select tool #256

Merged
merged 40 commits into from
May 16, 2018
Merged

Migrate select tool #256

merged 40 commits into from
May 16, 2018

Conversation

Martin-Idel-SI
Copy link
Contributor

Closes #211

This PR migrates the select tool enabling selection. In addition, it adds tests and refactoring to the selection part of RViz. The major changes include:

  • Split the SelectionManager into four parts: A HandlerManager to manage SelectionHandles, a SelectionManager to do selection, a ViewPicker to pick object (needed to focus without selection), which was previously hidden inside the SelectionManager but has little in common with it) and a SelectionRenderer encapsulating most Ogre functionality.
  • Add tests to SelectionManager, HandlerManager and SelectionHandles.
  • Refactoring (and if necessary, unit testing) of all SelectionHandlers in rviz_default_plugins

@Martin-Idel-SI
Copy link
Contributor Author

CI:

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

@Martin-Idel-SI
Copy link
Contributor Author

Martin-Idel-SI commented Apr 25, 2018

Try to fix error on Windows (we can't reproduce for whatever reason):

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

The new CMake warning on Linux should be unrelated.

@anhosi
Copy link
Contributor

anhosi commented Apr 25, 2018

New CI after we added some small refactorings:

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

This windows test failure is not related to rviz.

Martin-Idel-SI and others added 27 commits April 30, 2018 16:12
- Push necessary functionality to DisplayContext
- Not many more methods needed to extract VisualizationManager dependency
- This allows unittesting of selection_manager
- Add a second constructor for testing
- Delete publisher code (can't work well with tests)
- avoid overloaded functions for Ogre::Viewport in addition to those
  expecting a RenderWindow
- Some functions may need to be made public again once more of rviz is ported.
- introduce structs to simplify function signatures
- replace typedefs with using
- extracts the object handling from SelectionManager
- prerequisite for splitting the 3D picking from the SelectionManager
- Add HandlerManager to DisplayContext/ VisualizationManager
- Use HandlerManager from SelectionManager and for SelectionHandler
- offer a template function to create SelectionHandlers
- add tests to point_cloud_selection_handler + refactoring
- Fix sloppy following behaviour of the selection box for PoseDisplay and Arrow marker
@wjwwood wjwwood added in review Waiting for review (Kanban column) and removed in review Waiting for review (Kanban column) labels May 1, 2018
@wjwwood wjwwood added this to the bouncy milestone May 1, 2018
@greimela-si greimela-si force-pushed the feature/migrate_select_tool branch from a8b7c02 to 38c7a10 Compare May 3, 2018 12:30
@Martin-Idel-SI
Copy link
Contributor Author

New CI after rebase:

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

@wjwwood wjwwood added the 🔥 label May 16, 2018
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm

There were some files where the indentation of some statements looked weird, but it's not worth following up on in my opinion.

This was a large pr (whew 😅), so I tried to focus on files with a lot of back and forth deltas, and only skimmed files which were completely new or deleted.

@wjwwood wjwwood merged commit a62340f into ros2:ros2 May 16, 2018
@anhosi anhosi deleted the feature/migrate_select_tool branch May 16, 2018 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 in review Waiting for review (Kanban column)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants