change the way of highlight when using selection tool in rviz

asked 2021-01-07 05:40:30 -0500

I am using the librviz in my own GUI application. The GUI application is based on Qt5 and librviz.
I write a rviz plugin which is inherited from rviz::SelectionTool class. To be specifically, I re-write the processMouseEvent function in the class.
If I select a sphere marker in rviz with selection tool, the marker will be highlighted with a bounding box around it by default.
Now I really want to change the way of highlight when selecting a sphere marker. For example, I want to change the color and the scale of the sphere marker when I select it, not only highlight with a bounding box.
I know I could modify the source code of rviz and re-compile the new librviz to achieve what I want, but it is not so easy to read the source code.
I wonder if there is any other methods to achieve that? Thanks

edit retag flag offensive close merge delete