Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Add github workflow for Foxy builds (#132)
Browse files Browse the repository at this point in the history
* Add github workflow for Foxy builds

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>

* Remove eloquent change

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>

* Fix gazebo repo

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>

* Removed boost manually installed packages

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>

* Removed eloquent build

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>

* Fix workflow name

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>

* Update documents dropping Eloquent support

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>

* Update main README

Signed-off-by: Luca Della Vedova <luca@openrobotics.org>
  • Loading branch information
luca-della-vedova committed Sep 22, 2020
1 parent 4da9d6e commit 4639aab
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 25 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,21 @@ on: [push, pull_request]
jobs:

ros2:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
container:
image: docker://ros:eloquent-ros-base-bionic
image: docker://ros:foxy-ros-base-focal
steps:
- name: non-ros-deps
run: |
sudo apt update
sudo apt install -y wget
echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable bionic main" > /etc/apt/sources.list.d/gazebo-stable.list
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
wget https://packages.osrfoundation.org/gazebo.key -O - | apt-key add -
sudo apt update && sudo apt install \
git cmake python3-vcstool curl \
qt5-default \
libboost-system-dev libboost-date-time-dev libboost-regex-dev libboost-random-dev \
python3-shapely python3-yaml python3-requests \
libignition-common3-dev libignition-plugin-dev \
g++-8 \
-y
- name: workspace
Expand All @@ -40,16 +37,10 @@ jobs:
run: |
cd rmf_demos_ws
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro eloquent -yr
rosdep install --from-paths src --ignore-src --rosdistro foxy -yr
- name: build
shell: bash
run: |
cd rmf_demos_ws
source /opt/ros/eloquent/setup.bash
CXX=g++-8 colcon build --cmake-args -DCMAKE_BUILD_TYPE=RELEASE -DNO_DOWNLOAD_MODELS=True --packages-up-to \
demos \
rmf_demo_assets \
rmf_demo_maps \
rmf_demo_tasks \
rmf_gazebo_plugins \
rmf_rviz_plugin
source /opt/ros/foxy/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=RELEASE -DNO_DOWNLOAD_MODELS=True
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ This repository contains demonstrations of the above mentioned capabilities of R

These demos were developed and tested on

* [Ubuntu 18.04 LTS](https://releases.ubuntu.com/18.04/) & [Ubuntu 20.04 LTS](https://releases.ubuntu.com/20.04/)
* [Ubuntu 20.04 LTS](https://releases.ubuntu.com/20.04/)

* [ROS 2 - Eloquent](https://index.ros.org/doc/ros2/Releases/Release-Eloquent-Elusor/) & [ROS 2 - Foxy](https://index.ros.org/doc/ros2/Releases/Release-Foxy-Fitzroy/)
* [ROS 2 - Foxy](https://index.ros.org/doc/ros2/Releases/Release-Foxy-Fitzroy/)

* [Gazebo 9.13.0 & Gazebo 11.1.0](http://gazebosim.org/)
* [Gazebo 11.1.0](http://gazebosim.org/)

## Installation
Instructions can be found [here](docs/installation.md).
Expand All @@ -34,7 +34,7 @@ Answers to frequently asked questions can be found [here](docs/faq.md).
* [Clinic World](#Clinic-World)
* [Hotel World](#Hotel-World)

> Note: When running the demos on Ubuntu 18.04 + ROS2 Eloquent, you are required to explicitly supply gazebo_version launch argument. Eg:
> Note: When running the demos on Ubuntu 18.04 (not officially supported), you are required to explicitly supply gazebo_version launch argument. Eg:
ros2 launch demos office.launch.xml gazebo_version:=9

---
Expand Down
15 changes: 9 additions & 6 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ Install all non-ROS dependencies of RMF packages,
sudo apt update && sudo apt install \
git cmake python3-vcstool curl \
qt5-default \
libboost-system-dev libboost-date-time-dev libboost-regex-dev libboost-random-dev \
python3-shapely python3-yaml python3-requests \
libignition-common3-dev libignition-plugin-dev \
g++-8 \
-y
```

Expand All @@ -43,19 +40,25 @@ The models required for each of the demo worlds will be automatically downloaded

## Compiling Instructions

#### Ubuntu 20.04 and ROS 2 Foxy:
#### Ubuntu 20.04:

```bash
cd ~/rmf_demos_ws
source /opt/ros/foxy/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=RELEASE
```

#### Ubuntu 18.04 and ROS 2 Eloquent:
#### Ubuntu 18.04:

Running on Ubuntu 18.04 is not officially supported and requires building [Foxy from source](https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Development-Setup/), you will also need to install g++8 and the ignition libraries manually:

```
sudo apt install g++-8 libignition-common3-dev libigion-plugin-dev -y
```

```bash
cd ~/rmf_demos_ws
source /opt/ros/eloquent/setup.bash
source ~/ros2_foxy/install/setup.bash
CXX=g++-8 colcon build --cmake-args -DCMAKE_BUILD_TYPE=RELEASE
```
> Note: The build will fail if the compiler is not set to g++ version 8 or above.

0 comments on commit 4639aab

Please sign in to comment.