-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #2406 from Samer: Support ROS2 Humble
- Loading branch information
Showing
5 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,12 +23,14 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
ros_distro: [foxy, galactic, eloquent, dashing] | ||
ros_distro: [humble, galactic, foxy, eloquent, dashing] | ||
include: | ||
- ros_distro: 'foxy' | ||
os: ubuntu-20.04 | ||
- ros_distro: 'humble' | ||
os: ubuntu-22.04 | ||
- ros_distro: 'galactic' | ||
os: ubuntu-20.04 | ||
- ros_distro: 'foxy' | ||
os: ubuntu-20.04 | ||
- ros_distro: 'eloquent' | ||
os: ubuntu-18.04 | ||
- ros_distro: 'dashing' | ||
|
@@ -38,7 +40,7 @@ jobs: | |
- name: Setup ROS2 Workspace | ||
run: | | ||
mkdir -p ${{github.workspace}}/ros2/src | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: 'ros2/src/realsense-ros' | ||
|
@@ -48,20 +50,48 @@ jobs: | |
run: | | ||
cd ${{github.workspace}}/ros2/src/realsense-ros/scripts | ||
./pr_check.sh | ||
- uses: ros-tooling/[email protected] | ||
## If distro is one of [galactic, foxy, eloquent, dashing], use the [email protected] | ||
## which supports old versions of ROS2 and EOL versions. | ||
## For Humble distro, use v0.3 | ||
## See: 1) https://github.com/ros-tooling/setup-ros#Supported-platforms | ||
## 2) https://github.com/ros-tooling/setup-ros/tree/v0.2#Supported-platforms | ||
- name: build ROS2 Galactic/Foxy/Eloquent/Dashing | ||
if: ${{ matrix.ros_distro != 'humble'}} | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ matrix.ros_distro }} | ||
- name: build ROS2 Humble | ||
if: ${{ matrix.ros_distro == 'humble' }} | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ matrix.ros_distro }} | ||
|
||
## For all distros except humble, install RealSense SDK From Debinas | ||
## For Humble distro, install from source (TODO: Change this when we got debians for Humble) | ||
- name: Install RealSense SDK 2.0 Dependencies | ||
if: ${{ matrix.ros_distro != 'humble' }} | ||
run: | | ||
sudo apt-get update | ||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-key C8B3A55A6F3EFCDE | ||
sudo add-apt-repository "deb https://librealsense.intel.com/Debian/apt-repo $(lsb_release -cs) main" | ||
sudo apt-get update -qq | ||
sudo apt-get install librealsense2-dev --allow-unauthenticated -y | ||
sudo apt-get update | ||
- name: Build RealSense SDK 2.0 from source | ||
if: ${{ matrix.ros_distro == 'humble' }} | ||
run: | | ||
cd ${{github.workspace}} | ||
git clone https://github.com/IntelRealSense/librealsense.git -b master | ||
cd librealsense | ||
sudo mkdir build | ||
cd build | ||
sudo cmake ../ -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=false -DBUILD_GRAPHICAL_EXAMPLES=false | ||
sudo make uninstall | ||
sudo make clean | ||
sudo make -j10 | ||
sudo make install | ||
- name: Build | ||
run: | | ||
echo "source /opt/ros/${{ matrix.ros_distro }}/setup.bash" >> ${{github.workspace}}/.bashrc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters