Adding a GUI button in RViz

asked 2017-11-05 05:58:39 -0600

ravijoshi gravatar image

I want to add a button in RVIZ GUI. Basically, I want to invoke a function whenever I click on this button. I found a tutorial to customize the RViz GUI here.

I want to show these GUI buttons only in my project. Hence, it should not be accessible from other projects. For example, in the tutorial mentioned above, TeleopPanel is accessible even in the default rviz.

Following are my queries:

  1. Is it possible to keep the GUI elements in RViz config file? If yes, how?
  2. Is it possible to add GUI button in RViz using Python? Any reference, please.
edit retag flag offensive close merge delete

Comments

I am not answering your exact question, but I myself found good help about ROS GUI development by looking at the rqt tutorials.

knxa gravatar image knxa  ( 2017-11-06 00:36:18 -0600 )edit

@knxa: I referred the link, you provided. In fact, I cited it in the question too. I don't want to create a plugin since it appears in all projects. I want to display GUI element only in my project. Can you please mention specifically?

ravijoshi gravatar image ravijoshi  ( 2017-11-06 02:21:13 -0600 )edit
1

I don't think the link I provided is the same as you referred to. However, sorry if I'm wrong. If the information in the link I provided is all well known to you, I don't think I can help any further. Sorry.

knxa gravatar image knxa  ( 2017-11-06 03:19:51 -0600 )edit