Robot
Setup Robot from Scratch¶
This should only be neccessary with a new robot or when repairing/updating/replacing a robot.
Install image and prepare robot¶
- Download image Ubuntu 22.04, Microshift 4.8 : https://drive.google.com/file/d/139K2DgZnrxKIiAU-ErjdPXQHGoGOXubV
- Write to SD Card, will be resized to SD Card size at first boot
- The image will be resized to SD card size on first boot
- The image is preconfigured with:
- Automatic connection to the hackathon WIFI "robot-hackathon-78b09"
- Robot hackathon SSH key (Bitwarden Collection)
Network Setup¶
- If you want to configure another WIFI, attach a network cable and SSH into the robot (root /
from Bitwarden collection) -
For WLAN edit /etc/netplan/50-cloud-init.yaml and add your WLAN access point, reboot or run
netplan apply. Config example:
Finish configuration¶
To finish the configuration, run the Playbook [automation/configure-robot.yaml](https://github.com/cloud-native-robotz-hackathon/infrastructure/blob/main/automation/configure-robot.yaml) against the robot.
Example inventory:
Run Ansible:
And again to reset Microshift
Camera Setup (Raspi camera v2)¶
Playbook camera-test.yaml is here https://github.com/cloud-native-robotz-hackathon/infrastructure/tree/main/robot
- Cable orientation: blue “bar” on cable oriented to USB ports, blue bar at camera away from lens
- Test camera is detected: vcgencmd get_camera
- Script to test image acquisition
Microshift¶
Playbook microshift-reset.yaml is here https://github.com/cloud-native-robotz-hackathon/infrastructure/tree/main/robot
- To reset Microshift: systemctl stop microshift.service; rm -rf /var/lib/microshift; systemctl start microshift.service
- To use oc locally: export KUBECONFIG=/var/lib/microshift/resources/kubeadmin/kubeconfig
- Or cat /var/lib/microshift/resources/kubeadmin/kubeconfig > ~/.kube/config
Triton¶
Check model
curl --location --request GET 'http://localhost:8000/v2/models/densenet_onnx/stats'
Bill of materials¶
| # | Item | price in Euro | Example Shop |
|---|---|---|---|
| 1 | GoPiGo Kits | 178 | https://gopigo.io/gopigo/ |
| 2 | Raspberry Pi 4 B - 8 GB Memory Version | 79 | https://www.berrybase.de/raspberry-pi-4-computer-modell-b-8gb-ram |
| 3 | Raspberry Pi Camera Modules v2 | 17 | https://www.berrybase.de/raspberry-pi-camera-module-8mp-v2 |
| 4 | 3D Printed Camera Mounts Custom, you have to print it. | 30 | https://github.com/cloud-native-robotz-hackathon/3dprint-parts |