-
Notifications
You must be signed in to change notification settings - Fork 205
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
Migrate select tool #256
Conversation
- 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
- Refactor HandlerManager to no longer expose the handlers map - returns a HandlerRange instead which can be iterated over and contains directly the handlers - Use deadlock free locking variant - Add documentation
Store only weak_ptrs in mocks so that the cleanup can happen during teardown.
a8b7c02
to
38c7a10
Compare
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.
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.
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:
rviz_default_plugins