SpawnModel: Failure - model name already exist
I have the same problem that describe here.
In short, I spwan two quads model in the gazebo and it say:
SpawnModel: Failure - model name quadrotor1_quadrotor already exist.
Can you help me?
Tal.
Asked by Tal on 2015-07-29 00:33:24 UTC
Answers
It seems like you use ros to start your robot in this case you need to specify the model_name of the robot in the model field of the service.
if you use the hector_quadrotor you can specify the name in your launch file($(arg name) in the example:)
<include file="$(find hector_quadrotor_gazebo)/launch/spawn_quadrotor.launch">
<arg name="name" default="$(arg name)"/>
<arg name="model" value="$(arg model)"/>
<arg name="use_ground_truth_for_tf" value="true"/>
<arg name="use_ground_truth_for_control" value="true"/>
<arg name="use_pose_estimation" value="false"/>
<arg name="tf_prefix" default="$(arg tf_prefix)"/>
<arg name="x" default="$(arg x)"/>
<arg name="y" default="$(arg y)"/>
<arg name="z" default="$(arg z)"/>
</include>
Asked by evilBiber on 2015-08-05 06:28:45 UTC
Comments
what if you change another name?
Asked by Zheng yo chen on 2015-08-02 01:43:24 UTC
How do you spawn a new model?
Asked by winston on 2015-08-02 05:46:49 UTC
Have you solved this error? I am troubled with this problem now.
Asked by xikui1231 on 2018-05-16 05:39:19 UTC