Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ros2-jazzy #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
88 changes: 88 additions & 0 deletions v1/ros2-jazzy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
description: A development and testing environment for ROS 2 Jazzy.
version: 0.1

runs-on:
- arm64
- x86_64

instances:
ros2-jazzy:
image: 24.04
limits:
min-cpu: 2
min-mem: 4G
min-disk: 40G
timeout: 1800
cloud-init:
vendor-data: |
apt:
sources:
ros2:
source: "deb http://packages.ros.org/ros2/ubuntu $RELEASE main"
keyid: C1CF 6E31 E6BA DE88 68B1 72B4 F42E D6FB AB17 C654

package_upgrade: true

packages:
- build-essential
- cmake
- curl
- git
- lsb-release
- openssh-client
- openssh-server
- python3
- python3-pip
- snapd
- tig
- unzip
- vim
- wget
- zip
# ROS 2 specific packages
- python3-colcon-common-extensions
- python3-rosdep
- python3-setuptools
- python3-vcstool
- ros-jazzy-desktop-full

snap:
commands:
- snap install snapcraft --classic

write_files:

- content: |

[[ -z "${COLCON_HOME}" ]] && export COLCON_HOME="$HOME/.colcon"

[[ -z "${XAUTHORITY}" ]] && export XAUTHORITY=$HOME/.Xauthority

if [ -f /opt/ros/jazzy/setup.bash ]; then
source /opt/ros/jazzy/setup.bash
fi

if [ -f /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash ]; then
source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash
fi
path: /home/ubuntu/.bashrc
append: true
defer: true

runcmd:
- |
# Initialise rosdep
rosdep init
sudo -u ubuntu sh -c "rosdep update --rosdistro jazzy"

final_message: "The ROS 2 Jazzy environment is up, after $UPTIME seconds."

health-check: |
set -e

colcon --help
rosdep --version
ls /etc/ros/rosdep/sources.list.d/20-default.list
ls /home/ubuntu/.ros/rosdep/sources.cache

ls /opt/ros/jazzy
Loading