ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to add an icon to a custom display type in RViz?

asked 2015-07-17 03:47:46 -0600

takahashi gravatar image

I wrote a custom display type for RViz (see e.g. here) and I would like to have an icon displayed, when I browse for it in RViz.

In the above link, I see that there is a OculusDisplay.png in the directory icons/classes/.., but I can not figure out, how to link this. Does anybody know how this is done?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-17 09:29:22 -0600

kramer gravatar image

As far as I can tell, that's it, you've essentially figured it out.

For a custom display I put together, I just copied my png to the icons/classes/ directory, with the same name as the Display (I believe as it's found in the plugin_description.xml file).

With that done, it just worked.

edit flag offensive delete link more


lol, it's as easy as that. I forgot to change the name of the icon according to my display type, how silly.

takahashi gravatar image takahashi  ( 2015-07-17 10:25:57 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-07-17 03:47:46 -0600

Seen: 1,038 times

Last updated: Jul 17 '15