Ask Your Question

how to draw a parameter vs time graph?

asked 2015-01-19 23:58:50 -0500

Mind_hunter gravatar image

Is there any tool integrated with ROS which can be used to draw a graph showing a parameter change with time? Thanks in advance.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-01-20 03:04:04 -0500

ahendrix gravatar image

There aren't any tools in ROS for plotting parameters over time, and there's a fairly good reason for this: ROS parameters should not change very often. If you're changing parameters to communicate data between nodes, you should probably be using a topic instead.

That said, if you have a legitimate reason for wanting to capture and plot the value of a parameter over time, you could create a simple node which checks the value of your parameter, and publishes it on a topic. (roscpp has the getParamCached() function, which would be particularly good for this.) Once you have your parameter published on a topic, you can plot it with rqt_plot and log changes using rosbag.

edit flag offensive delete link more


Sorry i was talking about the value of message variable with respect to time not ros parameter. I think i should have used topic/message value instead of word "parameter".

Mind_hunter gravatar image Mind_hunter  ( 2015-01-20 10:36:44 -0500 )edit

answered 2015-01-20 00:58:38 -0500

updated 2015-01-20 10:00:34 -0500

I believe you are looking for rqt_plot. It can plot a value versus time.

edit flag offensive delete link more



I am afraid @Mind_hunter is not looking for rqt_plot as its purpose is drawing a value of a numeric topic/message type vs. time, not a rosparam

Wolf gravatar image Wolf  ( 2015-01-20 01:14:24 -0500 )edit

ya right i am looking for drawing a value of a numeric message type vs time .

Mind_hunter gravatar image Mind_hunter  ( 2015-01-20 10:40:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-01-19 23:58:50 -0500

Seen: 268 times

Last updated: Jan 20 '15