解决方案-Spawn service failed

2021/9/15 23:08:57

本文主要是介绍解决方案-Spawn service failed,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

错误信息:
[INFO] [1631713794.504229, 358.040000]: Spawn status: SpawnModel: Entity pushed to spawn queue, but spawn service timed out waiting for entity to appear in simulation under the name iris
[ERROR] [1631713794.505728, 358.040000]: Spawn service failed. Exiting.

[vehicle_spawn_isst_15735_2562139104487950788-6] process has died [pid 15835, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_model -sdf -file /home/isst/project/volans/src/simulation/models/iris/iris.sdf -model iris -x 5 -y 0 -z 0 -R 0 -P 0 -Y 0 __name:=vehicle_spawn_isst_15735_2562139104487950788 __log:=/home/isst/.ros/log/cc103de8-162b-11ec-a1d9-0c8268028cc2/vehicle_spawn_isst_15735_2562139104487950788-6.log].
log file: /home/isst/.ros/log/cc103de8-162b-11ec-a1d9-0c8268028cc2/vehicle_spawn_isst_15735_2562139104487950788-6*.log
在这里插入图片描述
解决方案是:
将launch文件中.world文件里的sim_time值改为0,即如下内容:

<sim_time>358 36000000</sim_time>

改为:

<sim_time>0</sim_time>


这篇关于解决方案-Spawn service failed的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程