1-process has died
运行Gazebo时候报错:
[spawn_model1-4] process has died
或者
[spawn_urdf-4]process has died
产生的原因是因为文字识别导致的,首先请尽量保证urdf或者model里面没有中文.
1.1-ubuntu 18.04及以下系统(python 2.7)
$ sudo gedit /usr/lib/python2.7/xml/etree/ElementTree.py
添加如下内容:
reload(sys)
sys.setdefaultencoding('utf8')
1.2-ubuntu 20.04及以上系统(python 3.8)
$ sudo gedit /usr/lib/python3.8/xml/etree/ElementTree.py
添加如下内容:
import umportlib
importlib.reload(sys)
1-3继续解决
如果上面的办法还不行,那就是.world文件里的时间修改
<sim_time>0</sim_time>
<real_time>0</real_time>
<wall_time>0</wall_time>