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

Changing rqt_plot x-axis while it plays in real-time

asked 2014-06-11 09:50:00 -0600

Eric Schneider gravatar image

Hi, I'm new and just going through the turtlesim tutorials. When I probe the variables with rqt_plot and watch them change over time, I would really like to expand the x-axis from a 5 second window to an n-second window, in order to see larger patterns, but I don't know how even after some googling. Thoughts? One can pause the graph and change x-min and x-max in the Figure options, but that only works when the graph is paused. The change vanishes once you turn auto-scrolling back on.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-06-11 12:14:01 -0600

ahendrix gravatar image

Yep. This is a bug in the matplotlib backend of the current released version of rqt_plot. If you have pyqtgraph or qwtplot installed, those backends tend to do a better job at this. (Click the little gear icon in the widget's title bar to switch backends)

The latest version from source no longer has this bug, as of yesterday. See https://github.com/ros-visualization/... and https://github.com/ros-visualization/...

edit flag offensive delete link more

Comments

Is there a way to change the parameters in the X and Y axis, as well as their names, etc? I want to plot, for example, my robot's velocity vs Current instead of velocity vs time.

Pototo gravatar image Pototo  ( 2014-07-01 23:54:31 -0600 )edit

Sorry, no.

ahendrix gravatar image ahendrix  ( 2014-07-02 00:29:51 -0600 )edit
0

answered 2014-06-11 15:37:20 -0600

Eric Schneider gravatar image

Thanks! I just wanted a rough look, so the QwtPlot worked. The right-click and drag interface seemed a bit rough and hard to use, but that's okay.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-11 09:50:00 -0600

Seen: 2,475 times

Last updated: Jun 11 '14