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

Any packages for graph plot?

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

chris_chris gravatar image

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

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
4

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

makokal gravatar image

ROS has basic plotting abilities thanks to rxplot in http://www.ros.org/wiki/rxplot and rqt_plot here http://ros.org/wiki/rqt_plot 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

Comments

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 -0500 )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 -0500 )edit
1

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

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

Comments

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 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 2,349 times

Last updated: Jul 23 '13