This package provides a tool to generate rviz plugins using a yaml file.
In the package in which you want to generate the plugin, add the following lines to your CMakeLists.txt
find_package(rviz_publisher_cmake REQUIRED)
generate_rviz_panel(
<path_to_the_yaml>
)I'll leave you a complete example of a package that is using it here.
Once built, launch Rviz2 and add a new panel. To do this, go to Panels > Add New Panel and then select Rviz Publisher Panel from your package folder. Following the example of this yaml, it loads a configuration like this:
Now, once you click on your buttons, the information you configured in your yaml will be published.
This project is licensed under the Apache License, Version 2 - see the LICENSE file for details.
