Skip to content

Step 3: Create a Development Environment and Build packages on AWS RoboMaker

Giovanni Bruno edited this page Nov 10, 2019 · 7 revisions

1. Create a Development Environment

  1. Go to AWS RoboMaker.
  2. Check if your region is correct.
  3. Click on "Development environments"
  4. Click on Create environment
  5. Give a name to the environment (e.g. upbot-env)
  6. Choose an instance type, default is m4.large
  7. Select VPC and Subnets
  8. Press on Create

2. Setup your environment

  1. Click on your environment (e.g. upbot-env) and then press to Open environment, Cloud9 will open
  2. You need to create a ROS workspace so in terminal tab type:
    $ mkdir -p upbot_ws/src
  3. Now you need to install dependencies for Intel Realsense D435 ROS package. Follow this guide referencing Ubuntu 16.04 and install all packages.
  4. Install upboard-extras:
    $ sudo add-apt-repository ppa:ubilinux/up
    $ sudo apt-get update
    $ sudo apt-get install upboard-extras
    $ sudo usermod -a -G gpio ${USER}
    $ sudo usermod -a -G leds ${USER}
    $ sudo usermod -a -G i2c ${USER}
    $ sudo usermod -a -G spi ${USER}
    $ sudo usermod -a -G dialout ${USER}
    $ sudo reboot
  5. You need to install MRAA, too. Just type:
    $ sudo add-apt-repository ppa:mraa/mraa
    $ sudo apt-get update
    $ sudo apt-get install mraa-tools mraa-examples libmraa1 libmraa-dev libupm-dev libupm1 upm-examples
    $ sudo apt-get install python-mraa python3-mraa node-mraa libmraa-java

3. Clone repositories

  1. In terminal tab type:
    $ cd upbot_ws/src

  2. Now type:
    $ git clone https://github.com/gbr1/upbot_ros.git
    $ git clone https://github.com/gbr1/upboard_ros.git
    $ git clone https://github.com/gbr1/erwhi-hedgehog-ros.git
    $ git clone https://github.com/gbr1/sengi_ros.git
    $ git clone https://github.com/gbr1/bosch_imu_driver.git
    $ git clone https://github.com/IntelRealSense/realsense-ros.git

  3. Checkout Realsense ROS 2.2.9:
    $ cd realsense-ros
    $ git checkout tags/2.2.9
    $ cd ..

4. Build UPbot workspace

  1. update ros dependencies typing:
    $ cd ..
    $ rosdep update

  2. install all dependencies required to build Erwhi workspace:
    $ rosdep install --from-paths src --ignore-src -r -y

  3. build:
    $ colcon build

  4. source environment:
    $ source install/setup.sh

5. Bundle and copy to S3

  1. Type:
    $ colcon bundle
    $ aws s3 cp bundle/output.tar s3://bucket-source/upbot.tar

NOTE: edit bucket-source with your bucket name