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:
Download all the simulation_ws and catkin_ws files in the respective src folders.
Download the simulations launched in that course. In the case of machine learning you have the turtlebot simulation: https://bitbucket.org/theconstructcore/turtlebot/src/master/. 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.
Install all the dependencies and that it has. You might have to look into TheConstruct public repos and search for the packages needed.
Compile and launch the simulation launch , in this case
roslaunch turtlebot_gazebo main.launch
roslaunch turtlebot_gazebo ml_unit5.launch
As you see its not difficult , but it has some work ;).
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 http://wiki.ros.org/xacro#Processing_Order
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
xacro.py 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
auto-starting new master
process[master]: started with pid 
setting /run_id to b8c751ac-7bbe-11eb-8bf0-0242ac180008
process[rosout-1]: started with pid 
started core service [/rosout]
process[gazebo-2]: started with pid 
process[gazebo_gui-3]: started with pid 
[ 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 
process[mobile_base_nodelet_manager-5]: started with pid 
[ 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
process[robot_state_publisher-7]: started with pid 
[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