Unable launch the simulation

Im try to “ROS Basics in 5 Days: Course Project”,but i can’t launch the simulation on the gazebo, and get the report as below. I have a try to the “select a simulation” and select “warehouse”,it can normal open. so i guess the course project errored.

user:~$ roslaunch realrobotlab main.launch
... logging to /home/user/.ros/log/17d51060-a04b-11ec-8051-0242c0a81008/roslaunch-3_xterm-1367.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://3_xterm:33437/

SUMMARY
========

PARAMETERS
 * /gazebo/enable_ros_network: True
 * /robot_description: <?xml version="1....
 * /robot_state_publisher_turtlebot3/publish_frequency: 5.0
 * /rosdistro: noetic
 * /rosversion: 1.15.9
 * /use_sim_time: True

NODES
  /
    gazebo (gazebo_ros/gzserver)
    gazebo_gui (gazebo_ros/gzclient)
    robot_state_publisher_turtlebot3 (robot_state_publisher/robot_state_publisher)
    spawn_urdf (gazebo_ros/spawn_model)

ROS_MASTER_URI=http://3_simulation:11311

process[gazebo-1]: started with pid [1377]
process[gazebo_gui-2]: started with pid [1380]
process[spawn_urdf-3]: started with pid [1384]
process[robot_state_publisher_turtlebot3-4]: started with pid [1388]
[ WARN] [1646900635.505518814]: Shutdown request received.
[ WARN] [1646900635.525967620]: Reason given for shutdown: [[/robot_state_publisher_turtlebot3] Reason: new node registered with same name]
[robot_state_publisher_turtlebot3-4] process has finished cleanly
log file: /home/user/.ros/log/17d51060-a04b-11ec-8051-0242c0a81008/robot_state_publisher_turtlebot3-4*.log
++ ls /usr/bin/gzclient-11.1.0
+ gzclient_path=/usr/bin/gzclient-11.1.0
+ DISPLAY=:2
+ /usr/bin/gzclient-11.1.0 --verbose -g /opt/ros/noetic/lib/libgazebo_ros_paths_plugin.so -g /opt/ros/noetic/lib/libgazebo_ros_api_plugin.so __name:=gazebo_gui __log:=/home/user/.ros/log/17d51060-a04b-11ec-8051-0242c0a81008/gazebo_gui-2.log
[ERROR] [1646900636.237665, 0.000000]: Spawn service failed. Exiting.
Gazebo multi-robot simulator, version 11.1.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Wrn] [GuiIface.cc:199] g/gui-plugin is really loading a SystemPlugin. To load a GUI plugin please use --gui-client-plugin
Gazebo multi-robot simulator, version 11.1.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[ INFO] [1646900636.861960279]: Finished loading Gazebo ROS API Plugin.
[Msg] Waiting for master.
[ INFO] [1646900636.874040550]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Connected to gazebo master @ http://192.168.16.8:11345
[Msg] Publicized address: 192.168.16.7
[spawn_urdf-3] process has died [pid 1384, exit code 1, cmd /opt/ros/noetic/lib/gazebo_ros/spawn_model -urdf -model turtlebot3_burger -x 0.1 -y 0.3 -z 0.05 -R 0.0 -P 0.0 -Y 0 -param robot_description __name:=spawn_urdf __log:=/home/user/.ros/log/17d51060-a04b-11ec-8051-0242c0a81008/spawn_urdf-3.log].
log file: /home/user/.ros/log/17d51060-a04b-11ec-8051-0242c0a81008/spawn_urdf-3*.log
Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: ring_road_v2. Please specify the SDFprotocol supported in the model configuration file. The first sdf tag in the config file will be used
[ INFO] [1646900637.335286382]: Finished loading Gazebo ROS API Plugin.
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://192.168.16.8:11345
[Msg] Publicized address: 192.168.16.7
[Wrn] [GuiIface.cc:297] Couldn't locate specified .ini. Creating file at "/home/use[0m[ INFO] [1646900637.344115455]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
33mr/.gazebo/gui.ini"
Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: triangular_prism. Please specify theSDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
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
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
Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: triangular_prism. Please specify theSDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
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
[Wrn] [GuiIface.cc:119] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
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
Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: OverLoard Camera. Please specify theSDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/RubberDucky"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/lms1xx"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/media"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/meshes"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/open_manipulator_with_tb3"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_autorace"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_autorace_2020"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_description"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/simulation_ws/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/models/turtlebot3_autorace"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/simulation_ws/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/models/turtlebot3_autorace_2020"
[ INFO] [1646900638.031051414]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1646900638.125050508]: Physics dynamic reconfigure ready.
[ INFO] [1646900639.523327721]: Camera Plugin: The 'robotNamespace' param did not exit
[ INFO] [1646900639.543762003, 0.004000000]: Camera Plugin (ns = )  <tf_prefix_>, set to ""
[Wrn] [Publisher.cc:136] Queue limit reached for topic /gazebo/default/pose/local/info, deleting message. This warning is printed only once.
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
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
Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: triangular_prism. Please specify theSDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
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 beused
[Wrn] [GuiIface.cc:119] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-user'
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 beused
Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: OverLoard Camera. Please specify theSDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/RubberDucky"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/lms1xx"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/media"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/meshes"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/open_manipulator_with_tb3"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_autorace"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_autorace_2020"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_description"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/simulation_ws/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/models/turtlebot3_autorace"
[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/simulation_ws/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/models/turtlebot3_autorace_2020"
[ INFO] [1646900638.031051414]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1646900638.125050508]: Physics dynamic reconfigure ready.
[ INFO] [1646900639.523327721]: Camera Plugin: The 'robotNamespace' param did not exit
[ INFO] [1646900639.543762003, 0.004000000]: Camera Plugin (ns = )  <tf_prefix_>, set to ""
[Wrn] [Publisher.cc:136] Queue limit reached for topic /gazebo/default/pose/local/info, deleting message. This warning is printed only 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
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
Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: triangular_prism. Please specify theSDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
Warning [parser.cc:723] Can not find the XML a

1.Try zooming out in the simulation. Almost always, upon starting,the camera is zoomed all the way into the simulation. This makes it appear that the simulation has not loaded, when in fact, it simply zoomed in.

Warning [parser.cc:723] Can not find the XML attribute 'version' in sdf XML tag for model: triangular_prism. Please specify theSDF protocol supported in the model configuration file. The first sdf tag in the config file will be used

This means that the line <?xml version="1.0"?> ,is missing from the URDF file, so the program has no way of knowing what version the code is in.

From the code, there seems to be a lot of errors in the URDF file and the launch file.
Can you share the URDF file and Launch file you are using? This gives me more info to work with.

1 Like

If it still doesn’t work, simply delete that rosject and refork another copy from the course

1 Like

hello,
Thank you for taking the time to answer my queries. I don’t have the URDF file and Launch file, the project is forked from the platform. I try delete the project and refork form the platform, now it running normally.

1 Like

thank you for the advise. it work!

This topic was automatically closed after 46 hours. New replies are no longer allowed.