Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/ubuntu-core-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: TurtleBot3c Ubuntu Core image
on:
push:
branches:
- main
- noetic
tags:
- '*'
pull_request:
branches:
- main
- noetic
workflow_dispatch:

jobs:
turtlebot3c-pi-gadget-snap:
turtlebot3c-gadget-snap:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -20,27 +20,27 @@ jobs:
id: build-snap
uses: snapcore/action-build@v1
with:
path: pi-gadget
path: turtlebot3c-gadget
- name: Upload snap artifact
uses: actions/upload-artifact@v4
with:
name: turtlebot3c-pi-gadget-snap
name: turtlebot3c-gadget-snap
path: ${{ steps.build-snap.outputs.snap }}
ubuntu-image:
runs-on: ubuntu-latest
needs: turtlebot3c-pi-gadget-snap
needs: turtlebot3c-gadget-snap
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Download gadget snap
uses: actions/download-artifact@v4
with:
name: turtlebot3c-pi-gadget-snap
path: pi-gadget
name: turtlebot3c-gadget-snap
path: gadget
- name: Build the Ubuntu Core image
run: |
sudo snap install ubuntu-image --classic
ubuntu-image snap turtlebot3c.model --snap ./pi-gadget/turtlebot3c-pi_*_arm64.snap
ubuntu-image snap turtlebot3c.model --snap ./gadget/turtlebot3c*.snap
- name: Upload snap artifact
uses: actions/upload-artifact@v4
with:
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Turtlebot3c Ubuntu Core image

The image contains the TurtleBot3c snaps:

- [turtlebot3c-bringup](https://snapcraft.io/turtlebot3c-bringup)
- [turtlebot3c-nav](https://snapcraft.io/turtlebot3c-nav)
- [turtlebot3c-teleop](https://snapcraft.io/turtlebot3c-teleop)
Expand All @@ -18,7 +19,7 @@ Mind that you need avahi installed on your remote machine, see e.g. `snap instal

Remember to set up the `ROS_MASTER_URI` to point to the robot:

```
```bash
ROS_MASTER_URI=http://turtelbot3c.local:11311/
```

Expand All @@ -36,8 +37,8 @@ and decompressing it, the image can be written to an SD card.

Build the gadget snap with snapcraft:

```
cd pi-gadget
```bash
cd turtlebot3c-gadget
snapcraft
cd ../
```
Expand All @@ -46,19 +47,18 @@ cd ../

[Sign the model](https://ubuntu.com/core/docs/sign-model-assertion) with your key:

```
```bash
snap sign -k tb3c-key turtlebot3c-model.json > turtlebot3c.model
```

### Generate the TurtleBot3c Ubuntu Core image

[Generate the image](https://ubuntu.com/core/docs/build-write-image):

```
ubuntu-image snap turtlebot3c.model --snap ./pi-gadget/turtlebot3c-pi_20-1_arm64.snap
```bash
ubuntu-image snap turtlebot3c.model --snap ./turtlebot3c-gadget/turtlebot3c-pi_*_arm64.snap
```

### Boot the image

Write the generated image on an SD card with the [rpi-imager](https://snapcraft.io/rpi-imager) and boot.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.