Skip to content

Commit 33a8cd6

Browse files
authored
Ros2 migration (#44)
* Updated shared to latest * ROS2 migration * GH Actions fix
1 parent 76f4071 commit 33a8cd6

38 files changed

Lines changed: 1024 additions & 949 deletions

.github/workflows/buildTest.yml

Lines changed: 20 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,37 @@
11
name: Build-Test
2-
# Run this workflow every time a new commit pushed to your repository
32
on: push
43

54
jobs:
6-
# Set the job key. The key is displayed as the job name
7-
# when a job name is not provided
85
build-test:
9-
# Name the Job
106
name: Build test
11-
# Set the type of machine to run on
12-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-24.04
8+
container:
9+
image: ros:jazzy-ros-base
1310

1411
steps:
15-
# Run package update
16-
- name: Run package update
17-
run: |
18-
sudo apt-get update
19-
sudo apt-get dist-upgrade -y
20-
21-
# Install ROS Melodic
22-
- name: Install ROS Noetic
23-
run: |
24-
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
25-
sudo apt install curl
26-
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
27-
sudo apt-get update
28-
sudo apt-get install ros-noetic-desktop python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
29-
sudo rosdep init
30-
rosdep update
31-
32-
# Install dependencies
33-
- name: Install dependencies
34-
run: |
35-
sudo apt-get install git libgflags-dev libpopt-dev libgoogle-glog-dev liblua5.1-0-dev libboost-all-dev libqt5websockets5-dev
36-
37-
38-
# Checks out a copy of your repository
3912
- name: Checkout code
40-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
4114
with:
4215
submodules: 'recursive'
4316

44-
# Checkout and build amrl_msgs
45-
- name: Get amrl_msgs
17+
- name: Install dependencies
4618
run: |
47-
source /opt/ros/melodic/setup.bash
48-
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/../amrl_msgs
49-
cd $GITHUB_WORKSPACE/..
50-
git clone https://github.com/ut-amrl/amrl_msgs.git
51-
cd amrl_msgs
52-
make
53-
54-
55-
# Checkout and build amrl_maps
56-
- name: Get amrl_maps
19+
apt-get update
20+
apt-get install -y git python3-colcon-common-extensions \
21+
libgflags-dev libgoogle-glog-dev liblua5.1-0-dev \
22+
libboost-all-dev libqt5websockets5-dev libqt5opengl5-dev qtbase5-dev \
23+
ros-jazzy-ament-index-cpp ros-jazzy-tf2-ros \
24+
ros-jazzy-tf2-geometry-msgs ros-jazzy-urg-node ros-jazzy-joy
25+
26+
- name: Create workspace
5727
run: |
58-
source /opt/ros/melodic/setup.bash
59-
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/../amrl_maps
60-
cd $GITHUB_WORKSPACE/..
61-
git clone https://github.com/ut-amrl/amrl_maps.git
28+
mkdir -p "$GITHUB_WORKSPACE/../deps_ws/src"
29+
ln -s "$GITHUB_WORKSPACE" "$GITHUB_WORKSPACE/../deps_ws/src/ut_automata"
30+
git clone https://github.com/ut-amrl/amrl_msgs.git "$GITHUB_WORKSPACE/../deps_ws/src/amrl_msgs"
31+
git clone https://github.com/ut-amrl/amrl_maps.git "$GITHUB_WORKSPACE/../deps_ws/src/amrl_maps"
6232
63-
# Compiles the code
6433
- name: Run build
34+
working-directory: ${{ github.workspace }}/../deps_ws
6535
run: |
66-
source /opt/ros/melodic/setup.bash
67-
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$GITHUB_WORKSPACE:$GITHUB_WORKSPACE/../amrl_msgs:$GITHUB_WORKSPACE/../amrl_maps
68-
cd $GITHUB_WORKSPACE
69-
make
36+
. /opt/ros/jazzy/setup.sh
37+
colcon build --packages-up-to ut_automata --cmake-args -DCMAKE_BUILD_TYPE=Release

.travis.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)