-
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.
Merge PR #3066 from SamerKhshiboun: Revert Foxy Build Support (From S…
…ource)
- Loading branch information
Showing
8 changed files
with
85 additions
and
28 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 |
---|---|---|
|
@@ -25,14 +25,16 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
ros_distro: [rolling, iron, humble] | ||
ros_distro: [rolling, iron, humble, foxy] | ||
include: | ||
- ros_distro: 'rolling' | ||
os: ubuntu-22.04 | ||
- ros_distro: 'iron' | ||
os: ubuntu-22.04 | ||
- ros_distro: 'humble' | ||
os: ubuntu-22.04 | ||
- ros_distro: 'foxy' | ||
os: ubuntu-20.04 | ||
|
||
steps: | ||
|
||
|
@@ -50,13 +52,27 @@ jobs: | |
cd ${{github.workspace}}/ros2/src/realsense-ros/scripts | ||
./pr_check.sh | ||
- name: build ROS2 | ||
# [email protected] is the last version supporting foxy (EOL) | ||
# [email protected] is needed to support humble/iron/rolling | ||
# so, seperating steps with if conditions | ||
- name: build ROS2 for foxy | ||
if: ${{ matrix.ros_distro == 'foxy' }} | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ matrix.ros_distro }} | ||
- name: build ROS2 for humble/iron/rolling | ||
if: ${{ matrix.ros_distro != 'foxy' }} | ||
uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ matrix.ros_distro }} | ||
|
||
- name: Build RealSense SDK 2.0 from source | ||
- name: Build RealSense SDK 2.0 (development branch) from source | ||
run: | | ||
# libusb-1.0-0-dev is needed for librealsense build in ubuntu 20.04 | ||
# This apt install command will be ignored in ubuntu 22.04 as libusb-1.0-0-dev already installed there | ||
sudo apt install -y libusb-1.0-0-dev | ||
cd ${{github.workspace}} | ||
git clone https://github.com/IntelRealSense/librealsense.git -b development | ||
cd librealsense | ||
|
@@ -68,13 +84,13 @@ jobs: | |
sudo make -j10 | ||
sudo make install | ||
- name: Build RealSense ROS2 Wrapper | ||
run: | | ||
- name: Build RealSense ROS2 Wrapper from source | ||
run: | | ||
echo "source /opt/ros/${{ matrix.ros_distro }}/setup.bash" >> ${{github.workspace}}/.bashrc | ||
source ${{github.workspace}}/.bashrc | ||
cd ${{github.workspace}}/ros2 | ||
echo "================= ROSDEP UPDATE =====================" | ||
rosdep update --rosdistro ${{ matrix.ros_distro }} | ||
rosdep update --rosdistro ${{ matrix.ros_distro }} --include-eol-distros | ||
echo "================= ROSDEP INSTALL ====================" | ||
rosdep install -i --reinstall --from-path src --rosdistro ${{ matrix.ros_distro }} --skip-keys=librealsense2 -y | ||
echo "================== COLCON BUILD ======================" | ||
|
@@ -103,10 +119,16 @@ jobs: | |
cd ${{github.workspace}}/ros2 | ||
source ${{github.workspace}}/.bashrc | ||
. install/local_setup.bash | ||
# the next command might be needed for foxy distro, since this package is not installed | ||
# by default in ubuntu 20.04. For other distro, the apt install command will be ignored. | ||
sudo apt install -y ros-${{matrix.ros_distro}}-sensor-msgs-py | ||
python3 src/realsense-ros/realsense2_camera/scripts/rs2_test.py non_existent_file | ||
# don't run integration tests for foxy since some testing dependecies packages like | ||
# tf_ros_py are not avaialble | ||
# TODO: check when we can run integration tests on rolling | ||
- name: Run integration tests | ||
if: ${{ matrix.ros_distro != 'rolling'}} | ||
if: ${{ matrix.ros_distro != 'rolling' && matrix.ros_distro != 'foxy' }} | ||
run: | | ||
cd ${{github.workspace}}/ros2 | ||
source ${{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
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