Robotics StackExchange | Archived questions

Subplots in rqt_plot

Hi,

I remember in rxplot we could plot several topics either in the same plot, or in multiple subplots. This was achieved by separating the topic names with a comma or with a space.

I wrote a script to help multi-dimensional topic plotting because I was fed up with writing the list of sub-fields or indices. It allows giving only the raw topic name (with or without sub-fields), and the script will build the list of scalars to be plotted, that may come from scalar or array sub-fields.

However I'd like to allow subplotting in order to separate different sub-fields. For example geometry_msgs/Pose has two position and orientation sub-fields and it would be preferable that these two were displayed in separate plots.

It seems that separating fields with comma or space gives the same result in rqt_plot:

rqt_plot robot_pose/position/x,robot_pose/orientation/x
rqt_plot robot_pose/position/x robot_pose/orientation/x

Are there any plans to recover this functionality?

Asked by Olivier Kermorgant on 2014-04-24 05:36:04 UTC

Comments

Similar question here: http://answers.ros.org/question/61913/how-do-you-specify-subplots-to-rqt_plot/ Although marked as answered, the answer is not giving information about how to create subplots.

Asked by bit-pirate on 2014-08-08 08:11:55 UTC

Answers

Creating subplots via command line arguments seems not (yet) supported.

However, you can do it manually. See this answer for instructions: http://answers.ros.org/question/59251/rqt_plot-not-plotting-data/?answer=189489#post-id-189489

Asked by bit-pirate on 2014-08-08 08:23:56 UTC

Comments

There is no direct support for subplots in rqt_plot. As an alternative, you can start rqt directly and open multiple instances of the rqt_plot plugin to get multiple plots.

rqt_plot is a community package, so you are welcome to contribute subplots if they're useful to you, or open a feature request ticket and wait for someone else from the community to implement it.

Asked by ahendrix on 2014-08-08 12:05:25 UTC

Comments