解决ROS中运行gazebo出现process has died的情况

项目场景:

[gazebo-1] process has died [pid 397, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/jiqiang/.ros/log/366747d8-0841-11ed-adde-1c1bb54aa7d6/gazebo-1.log].
log file: /home/zgjldx/.ros/log/366747d8-0841-11ed-adde-1c1bb54aa7d6/gazebo-1*.log


问题描述

运行roslaunch gazebo_ros empty_world.launch指令,出现process has died的报错[gazebo-1] process has died [pid 397, exit code 255, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/jiqiang/.ros/log/366747d8-0841-11ed-adde-1c1bb54aa7d6/gazebo-1.log].
log file: /home/zgjldx/.ros/log/366747d8-0841-11ed-adde-1c1bb54aa7d6/gazebo-1*.log

解决ROS中运行gazebo出现process has died的情况_第1张图片


解决方案:

killall gzserver

killall gzclient

在终端执行上述两条指令(一般只需要执行第一条指令)

重新执行以下指令,成功打开gazebo,不再出现报错

roslaunch gazebo_ros empty_world.launch

你可能感兴趣的:(ROS,LINUX,linux,人工智能,c++,vscode)