swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
371 stars 144 forks source link

Custom Plugins #769

Closed aksk1119 closed 1 year ago

aksk1119 commented 1 year ago

Hi all, Is there a way to add a custom plugin to Mapviz?

Thank you

malban commented 1 year ago

Yes, you can look at the mapviz_plugins, multires_image, and tile_map packages as examples.

You'll need a mapviz_plugins.xml file and to reference it in package.xml so mapviz can find the plugin(s).

Basically, you will inherit from the mapviz::MapvizPlugin base class and implement the custom functionality. For example: https://github.com/swri-robotics/mapviz/blob/master/mapviz_plugins/include/mapviz_plugins/grid_plugin.h

aksk1119 commented 1 year ago

Thank you, Marc. I will take a look at them!