问题内容:
[INFO] [1645350157.294176, 1638263152.727635]: Spawn status: SpawnModel: Entity pushed to spawn queue, but spawn service timed out waiting for entity to appear in simulation under the name m100
[ERROR] [1645350157.295729, 1638263152.727635]: Spawn service failed. Exiting.
[m100/spawn_m100-12] process has died [pid 12549, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_model -param robot_description -urdf -x 0.0 -y 0.0 -z 2.0 -model m100 __name:=spawn_m100 __log:=/home/yws/.ros/log/6bf47b54-9231-11ec-8f72-a864f1d6061e/m100-spawn_m100-12.log].
log file: /home/yws/.ros/log/6bf47b54-9231-11ec-8f72-a864f1d6061e/m100-spawn_m100-12*.log
处理方法:
修改自己设定的,gazebo中世界的文件内容
<arg name="world_file" default="$(find planner_gazebo_sim)/worlds/g2.world"/>
具体修改内容:
针对g2.world下面的sim_time做修改,改成0就可以
</model>
<state world_name='default'>
<sim_time>0</sim_time>
<real_time>119 512328949</real_time>
<wall_time>1638263152 726635429</wall_time>
<iterations>119408</iterations>
<model name='edgar_mine_virtual_stix'>
<pose frame=''>105.647 -1.41813 0.715858 1.5708 -0 -1.93959</pose>
<scale>1 1 1</scale>