ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This is one of the solutions to the error ' SpawnModel: Failure - model name robot already exist. ' But not a solution for this particular case. I have saved the world file and directly spawned the gazebo using the world file. When I launched gazebo.launch (for spawning world and urdf),I was getting this error. I finally found the issue. The robot model was also there in the gazebo world when I saved the file. So When I am calling gazebo.laumch, 2 robot models are trying to spawn(one saved inside world file- unintentionally and one's urdf which is called in gazebo.launch - intensionally) . I deleted the code for the robot model inside the saved world file. Used the same world file for the gazebo world. The issue has been solved.