You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. # Spawning Stretch in Simulation (Gazebo)
  2. ## Empty World Simulation
  3. To spawn Stretch in Gazebo's default empty world run the following command in your terminal.
  4. ```{.bash .shell-prompt}
  5. roslaunch stretch_gazebo gazebo.launch
  6. ```
  7. This will bring up the robot in the gazebo simulation similar to the image shown below.
  8. <p align="center">
  9. <img src="https://raw.githubusercontent.com/hello-robot/stretch_tutorials/noetic/images/stretch_gazebo_empty_world.png"/>
  10. </p>
  11. ## Custom World Simulation
  12. In Gazebo, you can spawn Stretch in various worlds. First, source the Gazebo world files by running the following command in a terminal:
  13. ```{.bash .shell-prompt}
  14. echo "source /usr/share/gazebo/setup.sh"
  15. ```
  16. Then using the world argument, you can spawn Stretch in the Willow Garage world by running the following:
  17. ```{.bash .shell-prompt}
  18. roslaunch stretch_gazebo gazebo.launch world:=worlds/willowgarage.world
  19. ```
  20. <p align="center">
  21. <img src="https://raw.githubusercontent.com/hello-robot/stretch_tutorials/noetic/images/stretch_willowgarage_world.png"/>
  22. </p>