rviz doesn't show custom plugin
Hey,
I created a plugin to show a mesh in rviz (basically an adaptation of the Polygon display). I had previously changed the source of the Polygon display to accept my message and display it as a mesh, this works fine. Then I wanted to export this plugin to my own package, however rviz doesn't seem to recognize it.
According to the tutorial, common problems are :
-Not having a plugin_description.xml (I have this located in the same package as the new plugin)
-Not exporting it in a package.xml file (I export it as follows:
<export>
<rviz plugin="${prefix}/plugin_description.xml"/>
</export>
-Not properly referencing the library file from plugin_description.xml (I reference the path as
<library path="lib/librviz_plugin">
I reference the class as:
<class name="mesh_tools/Mesh" type="mesh::MeshDisplay" base_class_type="rviz::Display">
Which is inside the mesh_tools package. The class is called mesh::MeshDisplay and as is done for rviz::Polygon display, it has rviz::Display as base class. When I make everything, I do indeed get a devel/lib/librviz_plugin.so. The plugin_description.xml is not copied to the devel folder however. If I do catkin_make_isolated --install it will get copied, but rviz still can't see the display.
What can I do to debug this further? By the way, I am on Indigo with Ubuntu 14.04.
Best regards, Hans
What is the output of
rospack plugins --attrib=plugin rviz
?Just the rviz plugins and the rviz tutorial, not my plugin.
Ok, do you have a run & build depend in your manifest on rviz? For me, rospack only shows my pkg when querying for rviz plugins if I declare a dependency on the rviz pkg.
Aha, I wasn't aware I needed the run dependency on rviz, that was indeed the issue. If you add it as an answer, I can approve it. Thanks!