getting "SpawnModel: Failure - model name turtlebot3_waffle already exist". whenevr I launch any turtlebot3 launch file and the same world file loads regardless of which one I run
Ubuntu 20.04 LTS Ros Noetic gazebo version 11.10.2
Hi there!. So I got the turtlebot3 package installed and ran it once with roslaunch turtlebot3gazebo turtlebot3world.launch and gazebo started up fine no errors/ I decided to try the other worlds And that's when I started getting errors displayed specifically SpawnModel: Failure - model name turtlebot3waffle already exist. also get ERROR] [1654909866.855966, 4157.283000]: Spawn service failed. Exiting. [gazebo-1] process has died [pid 44505, exit code 255, cmd /opt/ros/noetic/lib/gazeboros/gzserver -e ode /home/xx/catkinturtlebot/src/turtlebot3simulations/turtlebot3gazebo/worlds/turtlebot3world.world _name:=gazebo _log:=/home/dg/.ros/log/a262cbb6-e919-11ec-b235-c7e9fb4ba842/gazebo-1.log]. log file: /home/xx/.ros/log/a262cbb6-e919-11ec-b235-c7e9fb4ba842/gazebo-1*.log
[spawnurdf-3] process has died [pid 44515, exit code 1, cmd /opt/ros/noetic/lib/gazeboros/spawnmodel -urdf -model turtlebot3wafflepi -x -2.0 -y -0.5 -z 0.0 -param robotdescription _name:=spawnurdf _log:=/home/xx/.ros/log/a262cbb6-e919-11ec-b235-c7e9fb4ba842/spawnurdf-3.log]. log file: /home/xx/.ros/log/a262cbb6-e919-11ec-b235-c7e9fb4ba842/spawn_urdf-3*.log
and even if I launch the empty world launch file or the house launch file it always launch the regular world file and now there's 3 robots in it but they have different names, Also gazebo itself no launches by itself if I just type in gazebo at the command prompt to just start a blank gazebo. Before it worked fine until I installed turtlebot3 package. Now it does nothing . never starts. Though it will start via the turtbot3 launch files, just errors out with SPawnModel failure and has 3 robots in the world and always launches the same world file regardless if of which one I choose
If I do rosrun gazeboros gazebo on the cmd line, that launches gazebo just fine, but instead of a blank world I get the turtlebot3world loaded with 3 different robots loaded. What am I missing thats causing this?
note: I see a similar issue was posted a few years ago, but it didn't specify the model and I"ve not changed any config files to give 2 robots the same name. I"m just tryign to run the pre done packages.
I did set the model env variable before starting with the export command .
Asked by gman9500 on 2022-06-10 21:35:33 UTC
Comments