ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

rqt saving configuration

asked 2013-06-19 21:45:22 -0600

da-na gravatar image

updated 2013-06-20 00:46:58 -0600

130s gravatar image

Hi there!

I just discovered rqt which seems to be super cool thing :) Is there a way to save configuration? So next time I just load all the plugins I've chosen previosly? (Like loading config in RViz)

Cheers, da-na

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2013-06-20 00:46:15 -0600

130s gravatar image

updated 2013-06-24 21:04:10 -0600

To compensate for @felix k's answer, rqt saves so-called perspective when it's run on rqt_gui and closed. (I just found that it's not documented) things that are saved include:

  • plugins opened
  • plugins' size and positions within the container window (rqt_gui)
  • rqt_gui's size and position with respect to the computer's desktop

To run rqt_gui, you just run:

$ rqt  (Groovy and later)
$ rosrun rqt_gui rqt_gui  (Fuerte)

Running rqt_gui is the recommended usage of rqt, although you can run each rqt plugin individually.

In response to the RViz example in your question, rqt_gui does NOT save the configuration of each plugins as I listed above; instead it's up to how each plugin is implemented. And the feature of rqt variant of Rviz, rqt_rviz, is the same with what RViz has, because rqt_rviz embeds RViz, which doesn't save the .config file that was used the last time (if I remember correctly). You can open an enhancement request here.

edit flag offensive delete link more

Comments

thank you IsaacSaito for your detailed answer :)

da-na gravatar image da-na  ( 2013-06-20 01:40:23 -0600 )edit
1

Actually every plugin can save its intrinsic state and restore it again. Some plugins store things like checked checkboxes and values of input fields. rqt_publisher e.g. restores the list of message types to be published to reuse the once setup publishers.

Dirk Thomas gravatar image Dirk Thomas  ( 2013-06-22 20:18:58 -0600 )edit

Hi Dirk. Would you be able to briefly describe the procedure for saving the intrinsic state (specifically the config) of an Rviz plugin? Thank you very much for your time.

  • Chris
cshannon gravatar image cshannon  ( 2015-10-11 14:28:18 -0600 )edit

Every plugin can persist information through these two callbacks: https://github.com/ros-visualization/...

Dirk Thomas gravatar image Dirk Thomas  ( 2015-10-12 12:24:41 -0600 )edit
1

The rqt_rviz plugin would need to implement those order to store / restore information.

Dirk Thomas gravatar image Dirk Thomas  ( 2015-10-12 12:26:09 -0600 )edit

Thank you!

cshannon gravatar image cshannon  ( 2015-10-12 12:49:16 -0600 )edit

Hi Dirk, can you please let me know the file/file location in which to place the two callbacks for the rqt_rviz plugin? I'm not finding an rviz.cpp file. Thanks again.

cshannon gravatar image cshannon  ( 2015-11-01 08:37:26 -0600 )edit
2

answered 2013-06-19 23:44:56 -0600

felix k gravatar image

You can import and export perspectives via the Perspective menu.

edit flag offensive delete link more

Comments

Where does it save the default perspective? I can't seem to find it. But it does save it for sure because restarting rqt returns to the state it was exited in.

2ROS0 gravatar image 2ROS0  ( 2016-08-16 17:44:09 -0600 )edit

Is there any reason for the the difference between in saving configuration in RVIZ and saving perspectives in RQT? RVIZ remembers which config file it was opened with and I can just ctrl-s to update it. On rqt, I need to export the perspective, selecting the file path again every time I do it.

Arthur Queiroz gravatar image Arthur Queiroz  ( 2017-03-17 09:30:45 -0600 )edit

Storing perspective is kind of unuseful as it does not store all the configuration made

dogh gravatar image dogh  ( 2019-06-14 16:30:56 -0600 )edit

Each plugin is responsible to store/restore its intrinsic state and most plugins do that correctly. If a specific plugin doesn't do that for you you might want to fill a ticket in the repository containing that rqt plugin.

Dirk Thomas gravatar image Dirk Thomas  ( 2019-07-29 13:20:10 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-06-19 21:45:22 -0600

Seen: 4,064 times

Last updated: Jun 24 '13