spawning similar robots in gazebo
hello. I am trying to spawn two similar robot at a time and the following is the launch file I wrote. the problem is that only first robot appears in gazebo and in the log file I got this error :"[rosout][INFO] 2022-09-02 13:56:55,036: Spawn status: SpawnModel: Failure - entity already exists." is there any specific setting for gazebo that can solve the problem of the problem has its roots somewhere else?
<?xml version="1.0" encoding="UTF-8"?>
<!-- launch the simulator world -->
<arg name="debug" default="false"/>
<arg name="gui" default="true"/>
<arg name="headless" default="false"/>
<arg name="pause" default="false"/>
<arg name="world" default="simulation" />
<include file="$(find gazebo_ros)/launch/empty_world.launch">
<arg name="world_name" value="$(find rosbot_simulation)/worlds/$(arg world).world"/>
<arg name="debug" value="$(arg debug)" />
<arg name="gui" value="$(arg gui)" />
<arg name="paused" value="$(arg pause)"/>
<arg name="use_sim_time" value="true"/>
<arg name="headless" value="$(arg headless)"/>
<arg name="verbose" value="true"/>
</include>
<!-- BEGIN ROBOT 1-->
<!-- BEGIN ROBOT 2-->
Asked by M.IR on 2022-09-02 07:02:31 UTC
Comments
unfortunately the launch file is not posted completely, maybe there is a word count limitation
Asked by M.IR on 2022-09-02 07:04:34 UTC
You have typing mistake at the end of as "-->" which is commenting the line I suppose. Maybe removing this should fix your problem.
Asked by manzurmurshid on 2022-09-02 10:07:11 UTC
Yeah, thanks, you were right, to my surprise this typing mistake did not generate any error, fixing the mistake didn't change anything though; the problem is not figured out yet
Asked by M.IR on 2022-09-02 14:09:41 UTC