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.

57 lines
3.4 KiB

2 years ago
2 years ago
  1. # Getting Started
  2. ## Ubuntu
  3. Hello Robot utilizes Ubuntu, an open-source Linux operating system, for the Stretch platform. If you are unfamiliar with the operating system, we encourage you to review a [tutorial](https://ubuntu.com/tutorials/command-line-for-beginners#1-overview) provided by Ubuntu. Additionally, the Linux command line, BASH, is used to execute commands and is needed to run ROS on the Stretch robot. Here is a [tutorial](https://ryanstutorials.net/linuxtutorial/) on getting started with BASH.
  4. ## Creating Workspace
  5. Create a catkin workspace for your ROS packages. Here is an [installation guide for creating a workspace](http://wiki.ros.org/catkin/Tutorials/create_a_workspace). Once your system is set up, clone the [stretch_tutorials](https://github.com/hello-robot/stretch_tutorials) to your workspace and build the package in your workspace. This can be done by copying the commands below and pasting them into your terminal.
  6. ```bash
  7. cd ~/catkin_ws/src
  8. git clone https://github.com/hello-robot/stretch_tutorials.git
  9. cd ~/catkin_ws
  10. catkin_make
  11. ```
  12. ### Connecting a Monitor
  13. If you cannot access the robot through ssh due to your network settings, you will need to connect an HDMI monitor, USB keyboard, and mouse to the USB ports in the robot's trunk.
  14. ## ROS Setup on Local Computer
  15. Hello Robot is currently running Stretch on Ubuntu 20.04 and ROS Noetic. To begin the setup, start with [installing Ubuntu desktop](https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overview) on your local machine. Then follow the [installation guide for ROS Noetic](http://wiki.ros.org/noetic/Installation/Ubuntu) on your system.
  16. Currently, the Realsense2_description package isn't installed by rosdep and requires a user to install the package manually. Run the following command in your terminal
  17. ```bash
  18. sudo apt-get install ros-noetic-realsense2-camera
  19. ```
  20. After your system is setup, clone the [stretch_ros](https://github.com/hello-robot/stretch_ros.git), [stretch_tutorials](https://github.com/hello-robot/stretch_tutorials.git), and [realsense_gazebo_plugin packages]( https://github.com/pal-robotics/realsense_gazebo_plugin) to your **src** folder in your preferred workspace.
  21. ```bash
  22. cd ~/catkin_ws/src
  23. git clone https://github.com/hello-robot/stretch_ros
  24. git clone https://github.com/pal-robotics/realsense_gazebo_plugin
  25. git clone https://github.com/hello-robot/stretch_tutorials.git
  26. ```
  27. Change the directory to that of your catkin workspace and install system dependencies of the ROS packages. Then build your workspace.
  28. ```bash
  29. cd ~/catkin_ws
  30. rosdep install --from-paths src --ignore-src -r -y
  31. catkin_make
  32. ```
  33. Once `caktin_make` has finished compiling,source your workspace and **.bashrc** file
  34. ```bash
  35. echo "source /home/USER_NAME/catkin_ws/devel/setup.bash"
  36. source ~/.bashrc
  37. ```
  38. ## RoboMaker
  39. <p align="center">
  40. <img src="https://raw.githubusercontent.com/hello-robot/stretch_tutorials/noetic/images/aws-robomaker.png"/>
  41. </p>
  42. If you cannot dual boot and install ubuntu on your local machine, an alternative is to use [AWS RoboMaker](https://aws.amazon.com/robomaker/). AWS RoboMaker extends the ROS framework with cloud services. The service provides a robotics simulation service, allowing for testing the Stretch platform. If you are a first-time user of AWS RoboMaker, follow the [guide here](https://github.com/aws-robotics/aws-robomaker-robotics-curriculum/blob/main/getting-started-with-aws-robomaker/_modules/mod-2a-aws.md) to get up and running with the service.