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

how to draw a parameter vs time graph?

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

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
3

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

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

Comments

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 -0600 )edit
0

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

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

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

edit flag offensive delete link more

Comments

3

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

Question Tools

1 follower

Stats

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

Seen: 508 times

Last updated: Jan 20 '15