-
Notifications
You must be signed in to change notification settings - Fork 2
Deploy Erwhi on AWS RoboMaker
Giovanni Bruno edited this page Apr 14, 2019
·
8 revisions
- Go to RoboMaker console and check that you are on right region
- Click on Robots and then press on Create robot
- Give a name (e.g. erwhi-robot), choose X86_64 as architecture.
- Choose create new as greengrass group and choose your IAM role (e.g. erwhi-robomaker-greengrass)
- Press Create
- Press on Download to save greengrass configurations and a file will be downloaded (e.g. erwhi-robot-setup.zip)
- Click on Download referencing x86_64 Amazon Linux, a file called greengrass-linux-x86_64-version.tar.gz is downloaded
- Attach your Erwhi robot unit to a monitor, keyboard and mouse, then proceed.
- Use a USB pendrive and connect to your Erwhi unit and copy files in Downloads folder. NOTE: If you worked on a real Erwhi robot you would have got files in Downloads folder
- Uncompress files on Erwhi
- Open a terminal and type:
sudo mv ~/Downloads/greengrass /
- Copy files from folder erwhi-robot-setup/certs into /greengrass/certs
- Using terminal type:
cd /greengrass/certs
sudo wget -O root.ca.pem https://www.amazontrust.com/repository/AmazonRootCA1.pem
last command download a file called root.ca.pem, you can check if this file is not empty typing:
cat root.ca.pem
- Create a gcc_user on Erwhi robot, so open terminal:
sudo adduser --system ggc_user
sudo addgroup --system ggc_group
sudo usermod -a -G dialout ggc_user
sudo usermod -a -G leds ggc_user
sudo usermod -a -G video ggc_user
- Create udev rules:
cd /etc/udev/rules.d
then:
sudo nano 50-myusb.rules
and write:
KERNEL=="ttyUSB[0-9]*",MODE="0666"
KERNEL=="ttyACM[0-9]*",MODE="0666"
save and close nano (CTRL+X and Y+ENTER)
-
Reboot:
sudo reboot
- When your Erwhi robot is turned on, open terminal:
cd /greengrass/ggc/core
sudo ./greengrassd start
NOTE: if an error occur you can use greengrass checker - Now you Erwhi robot is connected to AWS Greengrass.
- Go back on AWS RoboMaker also on another device and check if your region is right.
- Click on Fleets and press on Create fleet
- Give a name (e.g. erwhi-fleet) and press Create
- Scroll down and press on Register new, check erwhi-robot and press Register robot
- Click on Robot applications and press Create robot application
- Give a name (e.g. erwhi-app) and select ROS and Kinetic
- Add X86_64 source file like in simulation application:
s3://bucket-source/erwhi.tar.gz
NOTE: change bucket-source with the name of your bucket. - Press Create
- Click on Deployments and press Create deployment
- Select erwhi-fleet and erwhi-app
- If you haven't got a version just create new
- Type in package name:
erwhi_bringup
and in launch file:
bringup.launch
- Press Create
- You will see inProgress status
- If you go in Robots and click on erwhi you will see percentage of deployment
Copyright (c) 2019 Giovanni di Dio Bruno under MIT license