Files
rtabmap_ros/.github/workflows/ros2.yml
T
matlabbe f77dda2b58 rtabmap_conversions tests and doc (#1449)
* Initial tests

* more tests

* More in-depth deskew() testing

* slightly less verbose clamping corruption warning

* added tf buffer related tests

* added remaining tests

* Added rosdoc2, improve tests when we require sync of odom stamp and sensor stamp

* cleanup doc

* fixing ci
2026-09-06 17:23:42 -07:00

68 lines
2.6 KiB
YAML

name: ros2
on:
push:
branches: [ ros2 ]
pull_request:
branches: [ ros2 ]
workflow_dispatch:
env:
BUILD_TYPE: Release
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
name: Build ros2 ${{ matrix.ros_distro }}
runs-on: ubuntu-latest
strategy:
matrix:
ros_distro: [humble, jazzy, kilted, lyrical, rolling]
include:
- ros_distro: humble
skip_keys: ''
packages: 'rtabmap_ros rtabmap_conversions'
- ros_distro: jazzy
skip_keys: ''
packages: 'rtabmap_ros rtabmap_conversions'
- ros_distro: kilted
skip_keys: 'grid_map_ros'
packages: 'rtabmap_ros rtabmap_conversions'
- ros_distro: lyrical
skip_keys: 'nav2_bringup nav2_msgs velodyne grid_map_ros realsense2_camera libpointmatcher'
# rtabmap_costmap_plugins cannot be built, missing nav2 on lyrical, build other packages:
packages: 'rtabmap_launch rtabmap_demos rtabmap_python rtabmap_examples rtabmap_rviz_plugins rtabmap_conversions'
- ros_distro: rolling
# libpointmatcher and gtsam are rtabmap deps not yet available on rolling
# (same skip keys as introlab/rtabmap's cmake-ros workflow)
skip_keys: 'nav2_bringup nav2_msgs velodyne libpointmatcher gtsam'
use_ros2_testing: true # Rolling is using ros2-testing (nightly)
# rtabmap_costmap_plugins cannot be built, missing nav2 on rolling, build other packages:
packages: 'rtabmap_launch rtabmap_demos rtabmap_python rtabmap_examples rtabmap_rviz_plugins rtabmap_conversions'
fail-fast: false
container:
image: osrf/ros:${{ matrix.ros_distro }}-desktop-full
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
with:
required-ros-distributions: ${{ matrix.ros_distro }}
use-ros2-testing: ${{ matrix.use_ros2_testing || false }}
- run: |
DEBIAN_FRONTEND=noninteractive
sudo apt update
sudo apt upgrade -y
- run: |
echo "repositories:\n introlab/rtabmap:\n type: git\n url: https://github.com/introlab/rtabmap.git\n version: master\n" > /tmp/deps.repos &&\
cat /tmp/deps.repos
- uses: ros-tooling/[email protected]
with:
package-name: ${{ matrix.packages }}
target-ros2-distro: ${{ matrix.ros_distro }}
vcs-repo-file-url: /tmp/deps.repos
rosdep-skip-keys: "${{ matrix.skip_keys }}"