ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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

one of my friend told me that I can run plot type "rqt" and "plugins-visualization-plot" then you can use the plot graph and someone just answered my question XD

kimbap gravatar image kimbap  ( 2020-04-23 09:32:07 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

raiakash gravatar image

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

Comments

wow thank you for your answer! I already solved that but I think it will be reallky helpful for other people struggling with this :D

kimbap gravatar image kimbap  ( 2020-04-23 09:33:10 -0500 )edit

@kimbap how were you able to solve this problem??

hassaanaero gravatar image hassaanaero  ( 2021-01-04 11:30:20 -0500 )edit

Question Tools

2 followers

Stats

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

Seen: 3,771 times

Last updated: Mar 21 '20