Error in main.launch in rosject and gazebo is not loaded

Hi,
I am doing the training course of ROS Basics in 5 Days (Python) Noetic and working on the project. After the rosject disappeared for the whole day yesterday, it came back last night. However, I got errors when launching the main.launch in the shell when I run the rosject this morning and the simulator could not load:

user:~$ roslaunch realrobotlab main.launch
... logging to /home/user/.ros/log/748ae202-8c2f-11eb-989c-0242c0a89007/roslaunch-4_xterm-11756.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://4_xterm:35345/

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)

auto-starting new master
process[master]: started with pid [11766]
ROS_MASTER_URI=http://4_xterm:11311

setting /run_id to 748ae202-8c2f-11eb-989c-0242c0a89007
process[rosout-1]: started with pid [11776]
started core service [/rosout]
process[gazebo-2]: started with pid [11783]
process[gazebo_gui-3]: started with pid [11786]
process[spawn_urdf-4]: started with pid [11791]
process[robot_state_publisher_turtlebot3-5]: started with pid [11794]
+++ 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/748ae202-8c2f-11eb-989c-0242c0a89007/gazebo_gui-3.log
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] [1616542103.140956735]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1616542103.142736792]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.144.7
[ INFO] [1616542103.256152782]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1616542103.257578186]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.144.7
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
[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_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 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_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 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_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: 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 the SDF protocol supported in the model configuration file. The first sdf tag in the config file will be used
[ INFO] [1616542103.902347034]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1616542103.930132954]: Physics dynamic reconfigure ready.
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/RubberDucky"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/lms1xx"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/media"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/meshes"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_autorace"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_autorace_2020"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/.gazebo/models/turtlebot3_description"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/simulation_ws/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/models/turtlebot3_autorace"**[/color]
[color=#]**[Err] [InsertModelWidget.cc:417] Missing model.config for model "/home/user/simulation_ws/src/turtlebot3/turtlebot3_simulations/turtlebot3_gazebo/models/turtlebot3_autorace_2020"**[/color]
[ INFO] [1616543339.101660575]: Camera Plugin: The 'robotNamespace' param did not exit
[ INFO] [1616543339.116643998, 0.001000000]: Camera Plugin (ns = )  <tf_prefix_>, set to ""
[ INFO] [1616543339.634691715, 0.001000000]: Camera Plugin: Using the 'robotNamespace' param: '/'
[ INFO] [1616543339.637784251, 0.001000000]: Camera Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1616543339.650262334, 0.001000000]: Laser Plugin: Using the 'robotNamespace' param: '/'
[ INFO] [1616543339.650472058, 0.001000000]: Starting Laser Plugin (ns = /)
[ INFO] [1616543339.654707543, 0.001000000]: Laser Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1616543339.737810522, 0.001000000]: Starting plugin DiffDrive(ns = //)
[ INFO] [1616543339.738258806, 0.001000000]: DiffDrive(ns = //): <rosDebugLevel> = na
[ INFO] [1616543339.739404807, 0.001000000]: DiffDrive(ns = //): <tf_prefix> =
[ INFO] [1616543339.740690459, 0.001000000]: DiffDrive(ns = //): Advertise joint_states
[ INFO] [1616543339.741347901, 0.001000000]: DiffDrive(ns = //): Try to subscribe to cmd_vel
[ INFO] [1616543339.743552671, 0.001000000]: DiffDrive(ns = //): Subscribe to cmd_vel
[ INFO] [1616543339.744007649, 0.001000000]: DiffDrive(ns = //): Advertise odom on odom
[spawn_urdf-4] process has finished cleanly
log file: /home/user/.ros/log/5477a25e-8c32-11eb-b851-0242c0a89007/spawn_urdf-4*.log

Please help.

1 Like

Hi,

By the logs , all those warnings are normal. Bt wht happens exactly? Does the Gabeo window stay grey? Could you send some images of the issue? That would help a lot.

Could you share the rosject here? That way we might be able to test it by ourselves nad see whats going on.

I have exactly the same issue, when launching:

 roslaunch realrobotlab main.launch

Then clicking to Open Gazebo, instead of showing the environment with the robot, it only shows the following image:

Hi @duckfrost ,
Previously, it was the turtlebot but now it becomes a kind of IDE, which you can see in the pic attached.

Thanks

1 Like

@yanchun.wang @dmavridis,

I apologize for this glitch. We now have a new screen for Gazebo, for better support for simulations.

Please refer to the solution described in this post and adapt to your rosjects accordingly: