ROSJect Turtle/waffle bot not loading in gazebo

Yesterday I was working on my Rosject project for the ROS2 in 5 days course and everything was fine. Today I loaded it up and a wall on gazebo has moved and the robot is not spawning in. I haven’t made any changes to any files since it was working fine yesterday. Here is the error log I get when running the gazebo command.
Thanks!

ros2 launch turtlebot3_gazebo main_turtlebot3_lab.launch.xml

[INFO] [launch]: All log files can be found below /home/user/.ros/log/2024-03-18-21-48-36-320147-2_xterm-13005
[INFO] [launch]: Default logging verbosity is set to INFO
GAZEBO MODELS PATH==/usr/share/gazebo-11/models:/usr/share/gazebo-11/models:/usr/share/gazebo-9/models:/usr/share/gazebo/models_robox:/home/user/simulation_ws/install/turtlebot3_description/share:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/maps/starbots_complete/models
GAZEBO PLUGINS PATH==/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/usr/lib/x86_64-linux-gnu/gazebo-11/plugins::/home/user/simulation_ws/install/turtlebot3_description/lib:/opt/ros/humble/lib
urdf_file_name : turtlebot3_burger.urdf
GAZEBO MODELS PATH==/usr/share/gazebo-11/models:/usr/share/gazebo-11/models:/usr/share/gazebo-9/models:/usr/share/gazebo/models_robox:/home/user/simulation_ws/install/turtlebot3_description/share:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/maps/starbots_complete/models:/home/user/simulation_ws/install/turtlebot3_description/share:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/maps/starbots_complete/models
GAZEBO PLUGINS PATH==/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/usr/lib/x86_64-linux-gnu/gazebo-11/plugins::/home/user/simulation_ws/install/turtlebot3_description/lib:/opt/ros/humble/lib:/home/user/simulation_ws/install/turtlebot3_description/lib:/opt/ros/humble/lib
GAZEBO MODELS PATH==/usr/share/gazebo-11/models:/usr/share/gazebo-11/models:/usr/share/gazebo-9/models:/usr/share/gazebo/models_robox:/home/user/simulation_ws/install/turtlebot3_description/share:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/maps/starbots_complete/models:/home/user/simulation_ws/install/turtlebot3_description/share:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/maps/starbots_complete/models:/home/user/simulation_ws/install/turtlebot3_description/share:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models:/home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/maps/starbots_complete/models
GAZEBO PLUGINS PATH==/usr/lib/x86_64-linux-gnu/gazebo-11/plugins:/usr/lib/x86_64-linux-gnu/gazebo-11/plugins::/home/user/simulation_ws/install/turtlebot3_description/lib:/opt/ros/humble/lib:/home/user/simulation_ws/install/turtlebot3_description/lib:/opt/ros/humble/lib:/home/user/simulation_ws/install/turtlebot3_description/lib:/opt/ros/humble/lib
urdf_file_name : turtlebot3_burger.urdf
[INFO] [gzserver-1]: process started with pid [13008]
[INFO] [gzclient-2]: process started with pid [13010]
[INFO] [robot_state_publisher-3]: process started with pid [13012]
[INFO] [spawn_entity.py-4]: process started with pid [13015]
[gzclient-2] ++ ls /usr/bin/gzclient-11.10.2
[gzclient-2] + gzclient_path=/usr/bin/gzclient-11.10.2
[gzclient-2] + DISPLAY=:2
[gzclient-2] + /usr/bin/gzclient-11.10.2 ‘’ ’ ’ ‘’ ’ ’ ‘’ ’ ’ ‘’
[robot_state_publisher-3] Link base_link had 5 children
[robot_state_publisher-3] Link caster_back_link had 0 children
[robot_state_publisher-3] Link imu_link had 0 children
[robot_state_publisher-3] Link base_scan had 0 children
[robot_state_publisher-3] Link wheel_left_link had 0 children
[robot_state_publisher-3] Link wheel_right_link had 0 children
[robot_state_publisher-3] [INFO] [1710798518.556747996] [robot_state_publisher]: got segment base_footprint
[robot_state_publisher-3] [INFO] [1710798518.557281668] [robot_state_publisher]: got segment base_link
[robot_state_publisher-3] [INFO] [1710798518.557716996] [robot_state_publisher]: got segment base_scan
[robot_state_publisher-3] [INFO] [1710798518.558127905] [robot_state_publisher]: got segment caster_back_link
[robot_state_publisher-3] [INFO] [1710798518.558533394] [robot_state_publisher]: got segment imu_link
[robot_state_publisher-3] [INFO] [1710798518.558956671] [robot_state_publisher]: got segment wheel_left_link
[robot_state_publisher-3] [INFO] [1710798518.559363873] [robot_state_publisher]: got segment wheel_right_link
[spawn_entity.py-4] [INFO] [1710798519.453320795] [spawn_entity]: Spawn Entity started
[spawn_entity.py-4] [INFO] [1710798519.455317640] [spawn_entity]: Loading entity XML from file /home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models/turtlebot3_burger/model.sdf
[spawn_entity.py-4] [INFO] [1710798519.458572405] [spawn_entity]: Waiting for service /spawn_entity, timeout = 30
[spawn_entity.py-4] [INFO] [1710798519.460970935] [spawn_entity]: Waiting for service /spawn_entity
[spawn_entity.py-4] [INFO] [1710798519.472853615] [spawn_entity]: Calling service /spawn_entity
[spawn_entity.py-4] [INFO] [1710798519.543216884] [spawn_entity]: Spawn status: Entity [burger] already exists.
[spawn_entity.py-4] [ERROR] [1710798519.544021016] [spawn_entity]: Spawn service failed. Exiting.
[ERROR] [spawn_entity.py-4]: process has died [pid 13015, exit code 1, cmd ‘/opt/ros/humble/lib/gazebo_ros/spawn_entity.py -entity burger -file /home/user/simulation_ws/install/turtlebot3_gazebo/share/turtlebot3_gazebo/models/turtlebot3_burger/model.sdf -x 0.0 -y 0.5 -z 0.01 --ros-args’].
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag for model: ring_road_v2. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag for model: triangular_prism. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag for model: triangular_prism_direccion_obligada. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag for model: triangular_prism_direccion_obligada. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag for model: triangular_prism. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag for model: triangular_prism_pedestrian. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] Warning [parser.cc:723] Can not find the XML attribute ‘version’ in sdf XML tag for model: triangular_prism_pedestrian. Please specify the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[gzserver-1] ALSA lib confmisc.c:855:(parse_card) cannot find card ‘0’
[gzserver-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
[gzserver-1] ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
[gzserver-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
[gzserver-1] ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
[gzserver-1] ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
[gzserver-1] ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
[gzserver-1] ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
[gzserver-1] AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device ‘default’: No such file or directory
[gzserver-1] 2024-03-18 21:48:44.823 [RTPS_MSG_IN Error] (ID:139816276584000) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:44.843 [RTPS_MSG_IN Error] (ID:139813458011712) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:44.943 [RTPS_MSG_IN Error] (ID:139816276584000) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:44.944 [RTPS_MSG_IN Error] (ID:139813458011712) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.046 [RTPS_MSG_IN Error] (ID:139813458011712) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.057 [RTPS_MSG_IN Error] (ID:139816276584000) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.147 [RTPS_MSG_IN Error] (ID:139813458011712) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.155 [RTPS_MSG_IN Error] (ID:139816276584000) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.242 [RTPS_MSG_IN Error] (ID:139816276584000) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.247 [RTPS_MSG_IN Error] (ID:139813458011712) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.348 [RTPS_MSG_IN Error] (ID:139813458011712) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg
[gzserver-1] 2024-03-18 21:48:45.351 [RTPS_MSG_IN Error] (ID:139816276584000) Problem reserving CacheChange in reader: 01.0f.5d.43.d0.32.e6.25.01.00.00.00|0.0.14.4 → Function processDataMsg

Hi, it looks like there is a strange error with gzserver there.

Since you were working in it already and you said everything worked fine (and assuming no modifications to simulation_ws were done, I am sure it can be fixed by just reloading your browser and clearing the cache (ctrl+shift+R)

Also, make sure that other terminals aren’t trying to launch the same process.

Let me know if this helps.

1 Like

Hello Rodrigo,

I had reloaded it alot but now that I got back on today it seems to have resolved itself.
Thanks for your response!