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

Any packages for graph plot?

asked 2013-07-22 06:11:02 -0600

chris_chris gravatar image

updated 2014-01-28 17:17:21 -0600

ngrennan gravatar image

Hello everybody,

Is there any packages available with ROS for 2d or 3d plotting of mathematical data (if possible, something similar to matlab plotting) ?

NOTE: I need to access the c++ output data dynamically for plotting.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-07-22 11:41:39 -0600

makokal gravatar image

ROS has basic plotting abilities thanks to rxplot in and rqt_plot here but you can always write your 'plotting' node in python and then use the excellent matplotlib which can do practically everything matlab can in terms of plotting.

edit flag offensive delete link more


But 'matplotlib' is in python. I need to access the c++ outputs dynamically. and Is there any with c++ ? or Is it possible to use matplotlib for accessing c++ outputs dynamically ?

chris_chris gravatar image chris_chris  ( 2013-07-22 23:56:44 -0600 )edit

You can also 'program' `gnuplot` inside a c++ code. But resort to this only when the `rqt` and `rxplot` utils do not suffice.

makokal gravatar image makokal  ( 2013-07-23 09:25:22 -0600 )edit

answered 2013-07-23 00:06:41 -0600

130s gravatar image

@chris_chris do you need GUI tools OR API?

*_plot @makokal suggested work for the former purpose.

Decoding the source code of rqt_plot will give you necessary API info for the latter.

edit flag offensive delete link more


I need anything such that I should plot values of various variables while the program is running i.e)dynamically.

chris_chris gravatar image chris_chris  ( 2013-07-26 03:49:32 -0600 )edit

Question Tools



Asked: 2013-07-22 06:11:02 -0600

Seen: 2,327 times

Last updated: Jul 23 '13