Ask Your Question
0

can't run graph with command rosrun rqt_plot rqt_plot

asked 2020-03-21 08:05:20 -0500

kimbap gravatar image

updated 2020-03-21 23:05:20 -0500

hello! I'm new to this site and ROS I just finished installing ros and wanted to get some graph...

so I just typed the command

rqt_plot rqt_plot

this logs got showed up

$ rosrun rqt_plot rqt_plot
/usr/lib/python2.7/dist-packages/matplotlib/axis.py:1015: UserWarning: Unable to find pixel distance along axis for interval padding of ticks; assuming no interval padding needed.
  warnings.warn("Unable to find pixel distance along axis "
/usr/lib/python2.7/dist-packages/matplotlib/axis.py:1025: UserWarning: Unable to find pixel distance along axis for interval padding of ticks; assuming no interval padding needed.
  warnings.warn("Unable to find pixel distance along axis "
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rqt_plot/data_plot/mat_data_plot.py", line 107, in resizeEvent
    self.figure.tight_layout()
  File "/usr/lib/python2.7/dist-packages/matplotlib/figure.py", line 1754, in tight_layout
    rect=rect)
  File "/usr/lib/python2.7/dist-packages/matplotlib/tight_layout.py", line 349, in get_tight_layout_figure
    pad=pad, h_pad=h_pad, w_pad=w_pad)
  File "/usr/lib/python2.7/dist-packages/matplotlib/tight_layout.py", line 128, in auto_adjust_subplotpars
    fig.transFigure.inverted())
  File "/usr/lib/python2.7/dist-packages/matplotlib/transforms.py", line 1775, in inverted
    self._inverted = Affine2D(inv(mtx), shorthand_name=shorthand_name)
  File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 526, in inv
    ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj)
  File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 90, in _raise_linalgerror_singular
    raise LinAlgError("Singular matrix")
numpy.linalg.linalg.LinAlgError: Singular matrix

I don't know why I get this error... I think I installed ROS properly... Could someone please give me a hand to solve this error.. and just nevermind that tags.. I am the first time in here so I don't know how to include tags properly.. My OS is Ubuntu 16.04 and ROS is kinetic and 1.12.14

Thank you for your hand in advance...

edit retag flag offensive close merge delete

Comments

and just nevermind that tags.. I am the first time in here so I don't know how to include tags properly..

so you don't know which ROS version you are using?

gvdhoorn gravatar image gvdhoorn  ( 2020-03-21 08:08:23 -0500 )edit

I also have such an error. Did you solve it?

kk9612 gravatar image kk9612  ( 2020-03-25 04:37:04 -0500 )edit

I didn't solve this problem yet....

kimbap gravatar image kimbap  ( 2020-03-25 05:14:24 -0500 )edit

I was running the same tutorial and got that error. Looking at the documentation for rqt_plot, it uses pyqtgraph first (preferable), then resorts to matplotlib if pyqtgraph is not installed. Try pip installing pyqtgraph, it worked for me! Not sure what the issue is with matplotlib though...

dennisjm gravatar image dennisjm  ( 2020-03-25 15:32:02 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-04-02 10:42:07 -0500

you can just invoke the rqt_plot by running

rqt

which will open the Standard GUI

and then traverse through plugins->Visualization->Plot to get the MatPlot

FYI : this is kinda workaround !!! works for this tutorial, I think one should give a more concrete solution

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-03-21 08:05:20 -0500

Seen: 177 times

Last updated: Mar 21