-
Notifications
You must be signed in to change notification settings - Fork 4
Step 5: Prepare robot application deployment
Giovanni Bruno edited this page May 30, 2019
·
2 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. upbot-robot), choose X86_64 as architecture.
- Choose create new as greengrass group and choose your IAM role (e.g. upbot-robomaker-greengrass)
- Press Create
- Press on Download to save greengrass configurations and a file will be downloaded (e.g. upbot-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 up squared to a monitor, internet connection, keyboard and mouse, then proceed.
- Use a USB pendrive and connect to your UP Squared and copy files in Downloads folder. NOTE: If you made previews steps on UP Squared you would have got files in Downloads folder
- Uncompress files on UP Squared
- Open a terminal and type:
$ sudo mv ~/Downloads/greengrass /
- Copy files from folder upbot-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 by typing:
$ cat root.ca.pem
- Create a gcc_user on your UP Squared, 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)
- Change leds permissions:
$ sudo chmod 666 /sys/class/leds/upboard\:blue\:/brightness
$ sudo chmod 666 /sys/class/leds/upboard\:yellow\:/brightness
$ sudo chmod 666 /sys/class/leds/upboard\:green\:/brightness
$ sudo chmod 666 /sys/class/leds/upboard\:red\:/brightness
-
Reboot:
$ sudo reboot
- When your UP Squared is turned on, open terminal:
$ cd /greengrass/ggc/core
$ sudo ./greengrassd start
NOTE: if an error occur you can use greengrass checker - Now you UP Squared 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. upbot-fleet) and press Create
- Scroll down and press on Register new, check upbot-robot and press Register robot
Copyrights (c) 2019 Giovanni di Dio Bruno under MIT license.