1. 错误状态
在终端中分别启动Gazebo平台和一个空地图
roslaunch gazebo_ros empty_world.launch
出现了错误:
[gazebo-2] process has died [pid 18299, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/jove-u18/.ros/log/630c298c-48c4-11ea-8111-000c29fced79/gazebo-2.log]. log file: /home/jove-u18/.ros/log/630c298c-48c4-11ea-8111-000c29fced79/gazebo-2*.log
[gazebo-1] process has died [pid 12682, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/melodic/.ros/log/efd473bc-7b7e-11ec-b226-000c295384a4/gazebo-1.log].
log file: /home/melodic/.ros/log/efd473bc-7b7e-11ec-b226-000c295384a4/gazebo-1*.log
2. 解决办法
运行下面的命令即可:
之后重启即可
killall gzserver