Home | Tutorials | Wiki | Issues
Ask Your Question
0

SpawnModel: Failure - model name already exist

asked 2015-07-29 00:33:24 -0500

Tal gravatar image

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.

edit retag flag offensive close merge delete

Comments

what if you change another name?

Zheng yo chen gravatar imageZheng yo chen ( 2015-08-02 01:43:24 -0500 )edit

How do you spawn a new model?

winston gravatar imagewinston ( 2015-08-02 05:46:49 -0500 )edit

Have you solved this error? I am troubled with this problem now.

xikui1231 gravatar imagexikui1231 ( 2018-05-16 05:39:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-08-05 06:28:45 -0500

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>
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-07-29 00:33:24 -0500

Seen: 4,192 times

Last updated: Aug 05 '15