Stuck at "rqt_plot" in Tutorial

asked 2021-02-28 18:45:22 -0500

desidero1027 gravatar image

updated 2021-03-09 03:39:27 -0500

Hi, I did every previous step in the 6th segment (Understanding ROS Topics) of the Beginner Level in Tutorial, they all working as they supposed to. I have my turtle spinning and left every terminal open as needed. But when I try to run "rosrun rqt_plot rqt_plot" command in a new terminal as it is said in the 5th step (Using rqt_plot), I come across with the error below. How can I get to that plotting screen so that I can move on with the tutorial? Thanks in advance. (I tried the answers given for similar problems but I couldn't fix it) (I use Kinetic btw) Here is the link to the tutorial: http://wiki.ros.org/ROS/Tutorials/Und...

/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
edit retag flag offensive close merge delete

Comments

Please post a link to the tutorial that you used. I would recommend trying a ROS version that is not weeks away from EOL if you can. I suggestion ROS 2 Foxy or Noetic.

kscottz gravatar image kscottz  ( 2021-03-01 13:13:24 -0500 )edit

http://wiki.ros.org/ROS/Tutorials/Und... here is the link to the tutorial, in the 5th step I am stuck. I seriously consider your suggestion but my professor suggested to learn the Kinetic version for me to attend his laboratory, so I need to learn this version for the time being.

desidero1027 gravatar image desidero1027  ( 2021-03-05 01:22:53 -0500 )edit

Have you seen #q346880 ?

Delb gravatar image Delb  ( 2021-03-09 07:34:50 -0500 )edit