May I please ask how I can use the Gazebo simulation world from ROSject on my own Ubuntu ROS machine?

Hi all,

I am a subscriber of ROS construct and I’ve gone through the Machine Learning course. And now I simply want to repeat the process on my own machine. How do you think I can set up the Gazebo Environment which was given automatically when the course started?

May I please ask how I can use the Gazebo simulation world from ROSject on my own Ubuntu ROS machine? Thanks a lot. Cheers.


The steps to migrate a ROSject to local machine are:

  1. Download all the simulation_ws and catkin_ws files in the respective src folders.

  2. Download the simulations launched in that course. In the case of machine learning you have the turtlebot simulation: Take intoaccound that the course was done for kinetic ROS ubuntu 16. If you are using the latest Ubuntu 20 Noetic, you should change the branch to noetic.

  3. Install all the dependencies and that it has. You might have to look into TheConstruct public repos and search for the packages needed.

  4. Compile and launch the simulation launch , in this case :slight_smile:

    roslaunch turtlebot_gazebo main.launch
    roslaunch turtlebot_gazebo ml_unit5.launch

As you see its not difficult , but it has some work ;).

1 Like

Thanks a lot for your help. I followed your advice and when I roslaunch turtlebot_gazebo main.launch. The world with a wall shows up but the turtlebot doesn’t appear. May I please ask if you have any solutions? Thanks a lot

gazebo/launch$ roslaunch turtlebot_gazebo main.launch
… logging to /home/user/.ros/log/b8c751ac-7bbe-11eb-8bf0-0242ac180008/roslaunch-2_xterm-12549.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usageis <1GB.

xacro: Traditional processing is deprecated. Switch to --inorder processing!
To check for compatibility of your document, use option --check-order.
For more infos, see
deprecated: xacro tags should be prepended with ‘xacro’ xml namespace.
Use the following script to fix incorrect usage:
find . -iname “*.xacro” | xargs sed -i ‘s#<([/]?)(if|unless|include|arg|property|macro|insert_block)#<\1xacro:\2#g’
when processing file: /home/user/catkin_ws/src/turtlebot/turtlebot_description/robots/kobuki_hexagons_asus_xtion_pro.urdf.xacro is deprecated; please use xacroinstead
started roslaunch server http://2_xterm:36611/



  • /cmd_vel_mux/yaml_cfg_file: /home/user/catkin…
  • /robot_description: <?xml version="1…
  • /robot_state_publisher/publish_frequency: 30.0
  • /rosdistro: kinetic
  • /rosversion: 1.12.14
  • /use_sim_time: True

cmd_vel_mux (nodelet/nodelet)
gazebo (gazebo_ros/gzserver)
gazebo_gui (gazebo_ros/gzclient)
mobile_base_nodelet_manager (nodelet/nodelet)
robot_state_publisher (robot_state_publisher/robot_state_publisher)
spawn_turtlebot_model (gazebo_ros/spawn_model)

auto-starting new master
process[master]: started with pid [12562]

setting /run_id to b8c751ac-7bbe-11eb-8bf0-0242ac180008
process[rosout-1]: started with pid [12575]
started core service [/rosout]
process[gazebo-2]: started with pid [12588]
process[gazebo_gui-3]: started with pid [12600]
[ INFO] [1614734467.800979700]: Finishedloading Gazebo ROS API Plugin.
[ INFO] [1614734467.801664100]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting…
Open Gazebo clicking Tools → Gazebo
process[spawn_turtlebot_model-4]: started with pid [12641]
process[mobile_base_nodelet_manager-5]: started with pid [12782]
[ INFO] [1614734468.324669339, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1614734468.377150019, 0.067000000]: Physics dynamic reconfigure ready.
process[cmd_vel_mux-6]: started with pid[12868]
process[robot_state_publisher-7]: started with pid [12999]
[rospack] Error: package ‘hokuyo’ not found
[librospack]: error while executing command
[FATAL] [1614734469.115971198, 0.809000000]: Package[hokuyo] does not have a path
[spawn_turtlebot_model-4] process has finished cleanly
log file: /home/user/.ros/log/b8c751ac-7bbe-11eb-8bf0-0242ac180008/spawn_turtlebot_model-4*.log


Check that all the models and packages needed are copied in the ~/.gazebo/models folder in your local pc. Check the turtlebot_description package if its there