错误信息:
[gazebo-2] process has died [pid 7605, exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver -e ode ......
Ubuntu 16.04 on Virtualbox 6.1
gazebo 7.0
大家可以试试更新gazebo到7.16版本以上(或者直接通过应用商店)
添加源和钥匙
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget https://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
$ sudo apt-get dist-upgrade
$ sudo apt-get update
$ sudo apt-get upgrade
然而没用,出现同样错误
[gazebo-1] process has died exit code 139, cmd /opt/ros/kinetic/lib/gazebo_ros/gzserver
现在唯一的方法就是关闭虚拟机里的3D加速,这样仿真会慢很多
settings->Display->Acceleartion
如果有更好的办法我会在这里公布!
最终解决方案!!!
export LIBGL_ALWAYS_SOFTWARE=1
这样就可以使用3D加速了。
对于其他错误用 $top 命令查看任务管理器中是否还残留有gzserver or gzclient
通过
$source ~/catkin_ws/devel/setup.bash
$killall gzserver
$killall gzclient
可以尝试然后重新启动roslaunch [launch.file]