问题描述:
[ERROR] [1712803397.518061, 0.000000]: Spawn service failed. Exiting.[dinning_table_1-12] process has died [pid 102653, exit code 1, cmd /opt/ros/noetic/lib/gazebo_ros/spawn_model -file /home/xkk/catkin_ws/src/wpr_simulation/models/table.model -x 1.5 -y 2.0 -z 0 -Y 1.57 -urdf -model dinning_table_1 __name:=dinning_table_1 __log:=/home/xkk/.ros/log/3d60cfa2-f7ad-11ee-b9c0-097bbd64eb3c/dinning_table_1-12.log].
log file: /home/xkk/.ros/log/3d60cfa2-f7ad-11ee-b9c0-097bbd64eb3c/dinning_table_1-12*.log
解决办法:
在启动gazebo仿真之前,先在终端运行export SVGA_VGPU10=0
如果不想每次启动gazebo之前都运行上述命令,可以在.bashrc文件中添加命令export SVGA_VGPU10=0,然后保存
再次启动launch文件,虽然报错依然存在,但已经可以显示完整模型。