ROS调用rqt_plot的时候窗口卡死解决办法
ROS调用rqt_plot的时候窗口卡死解决办法
笔者使用的是Nvidia Jetson Xavier NX的板子,aarch64的架构,Ubuntu18.04的版本。
在使用ROS是调用rqt_plot的时候遇到了打不开,窗口卡死的现象,报错信息:
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5agg.py", line 77, in paintEvent self.resizeEvent(event) File "/opt/ros/melodic/lib/python2.7/dist-packages/rqt_plot/data_plot/mat_data_plot.py", line 110, in resizeEvent self.figure.tight_layout() File "/usr/lib/python2.7/dist-packages/matplotlib/figure.py", line 2031, in tight_layout self.subplots_adjust(**kwargs) File "/usr/lib/python2.7/dist-packages/matplotlib/figure.py", line 1881, in subplots_adjust self.subplotpars.update(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/matplotlib/figure.py", line 241, in update raise ValueError('bottom cannot be >= top') ValueError: bottom cannot be >= top
后来上网查资料发现是这个指令需要调用python中的matplotlib包,只要安装一下这个包就行了,前提是你的环境中有pip:
python -m pip install -U matplotlib -i https://pypi.douban.com/simple/
这样就解决了。
如果有用请留下你的评论。