ROS Basics Project Part 1, missing gazebo files and failing to load simulation

Hi there,

I am having trouble following the rosject for Ros Basics in 5 days Part 1 project because the simulation is having errors in the rosject
$roslaunch realrobotlab main.launch

user:~/catkin_ws$ roslaunch realrobotlab main.launch
... logging to /home/user/.ros/log/3a0057f8-fa7e-11eb-9601-0242ac1e0007/roslaunch-2_xt
erm-5777.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://2_xterm:44983/
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 [5787]
ROS_MASTER_URI=http://2_xterm:11311

setting /run_id to 3a0057f8-fa7e-11eb-9601-0242ac1e0007
process[rosout-1]: started with pid [5797]
started core service [/rosout]
process[gazebo-2]: started with pid [5804]
process[gazebo_gui-3]: started with pid [5807]
process[spawn_urdf-4]: started with pid [5812]
process[robot_state_publisher_turtlebot3-5]: started with pid [5815]
++ 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/3a0057f8-fa7e-11eb-9601-0242ac1e0007/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] [1628670563.455778456]: Finished loading Gazebo ROS API Plugin.
[Msg] Waiting for master.
[ INFO] [1628670563.459155070]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.30.0.7
[ INFO] [1628670563.659614346]: Finished loading Gazebo ROS API Plugin.
[Msg] Waiting for master.
[ INFO] [1628670563.663556210]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 172.30.0.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 tagin 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 sdftag 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_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 sdftag 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 sdftag in the config file will be used
[ INFO] [1628670564.188166841]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1628670564.222605037]: Physics dynamic reconfigure ready.
[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/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] [1628670564.990340032]: Camera Plugin: The 'robotNamespace' param did not exit
[ INFO] [1628670564.994158379, 0.001000000]: Camera Plugin (ns = )  <tf_prefix_>, set to ""
[ INFO] [1628670566.085951028, 0.001000000]: Camera Plugin: Using the 'robotNamespace' param: '/'
[ INFO] [1628670566.093747192, 0.001000000]: Camera Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1628670566.106898080, 0.001000000]: Laser Plugin: Using the 'robotNamespace' param: '/'
[ INFO] [1628670566.107167608, 0.001000000]: Starting Laser Plugin (ns = /)
[ INFO] [1628670566.158564203, 0.001000000]: Laser Plugin (ns = /)  <tf_prefix_>, set to ""
[ INFO] [1628670566.205150297, 0.001000000]: Starting plugin DiffDrive(ns = //)
[ INFO] [1628670566.205310044, 0.001000000]: DiffDrive(ns = //): <rosDebugLevel> = na
[ INFO] [1628670566.206239285, 0.001000000]: DiffDrive(ns = //): <tf_prefix> =
[ INFO] [1628670566.256502515, 0.001000000]: DiffDrive(ns = //): Advertise joint_states
[ INFO] [1628670566.257397865, 0.001000000]: DiffDrive(ns = //): Try to subscribe to cmd_vel
[ INFO] [1628670566.260522620, 0.001000000]: DiffDrive(ns = //): Subscribe to cmd_vel
[ INFO] [1628670566.261847536, 0.001000000]: DiffDrive(ns = //): Advertise odom on odom
[spawn_urdf-4] process has finished cleanly
log file: /home/user/.ros/log/3a0057f8-fa7e-11eb-9601-0242ac1e0007/spawn_urdf-4*.log
[Wrn] [Publisher.cc:136] Queue limit reached for topic /gazebo/default/pose/local/info, deleting message. This warning is printed only once.

Was wondering if there was a fix for this or am I doing something wrong?
Also my completion state for each course isn’t updating and just says 0%
Thank you :smile:

Hi,

Can you try deleting the rosject, and forking it from the course again?

The simulation works, sometimes you need to try running it a couple of times.

Let me know if the issue continues.

Hi,
Thank you for responding.

I am still unable to get the simulation running even after deleting the rosject and restarting it. I think the problems is with the missing models. I am getting the same errors everytime I run the simulation.

[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/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"

It seems like the simulation can’t find the config file for the models.
Something was done to my account a month ago when I had an issue with stuff being deleted when I switched courses. A couple of admins made it so stuff couldn’t be deleted. I am not sure if that would have messed stuff up for me. See: Ros not working! and src folder content deleted

Thanks again for your help.

Those errors actually don’t prevent the simulation from launching. Can you open gazebo, hover your mouse over it, and zoom out with your mouse’s scrolling wheel? That way you’ll be able to see the simulation.

Also, after running it, check that you are receiving topics from gazebo by running

rostopic list

1 Like

Thanks for the reply.
Got it working : )