mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
* rtabmap_odom tests and doc * opengv note * added ci checks or humble-latest flaky dep cmake errors * Added real data tests for rgbd_odom and stereo_odom * added real data for icp_odometry's deskewing test * fixing json cmake error on lyrical/rolling * test 2d icp odom deskewing branch * first review of existing OdometryROS tests * testing with imu used as guess * tested imu arrivals sync * Fixed odom reset on right pose when guess frame id is used * fixing header errors in ci >=lyrical * Added support for input rgbd_image topic with features for odom, added multicam rgbd_odometry test * Added stereo odom support for features-only frames. Added multicam stereo tests. * forcing latest rtabmap version * updated OdometryROS API * ci: dont build non-latest docker in pull requests * splitting docker jobs * doc edit * Making publish_null_when_lost:=false continous when guess is provided (using guess covariance when we cannot register yet) * updated stereo doc * ficing rolling ci (rviz Ogre header) * Added test coverage of alll rgbd_image callbacks * fixing rolling ci * making docker ci build/run the tests on pull requests * fixing ros2 ci testing * improved sync callback coverage * improving stereo_odometry test coverage * improved icp_odometry test coverage * lyrical voxel_grid ptr error * make multicam tests working as well without opengv * removing deps of missing packages on rolling * PCL empty cloud conversion compiler errors fix * fixing icp_odometry test failure on ci witohut libpointmatcher * fixing nav2 costmap plugin build on lyrical * joining thread when exiting * updating icp test to work the same on pcl 1.15 (lyrical) * Fix parallel tests seg fault --------- Co-authored-by: mathieu86 <[email protected]>
144 lines
4.5 KiB
YAML
144 lines
4.5 KiB
YAML
name: docker-ros2
|
|
|
|
on:
|
|
push:
|
|
branches: [ ros2 ]
|
|
pull_request:
|
|
branches: [ ros2 ]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
# Images built from this tree (docker/*/latest), the ones a change here can break.
|
|
docker:
|
|
# A manual dispatch is honored only on ros2, the only ref we push from.
|
|
if: ${{ github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/ros2' }}
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
docker_tag: [humble-latest, jazzy-latest, kilted-latest, lyrical-latest]
|
|
include:
|
|
- docker_tag: humble-latest
|
|
docker_path: 'humble/latest'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
- docker_tag: jazzy-latest
|
|
docker_path: 'jazzy/latest'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
- docker_tag: kilted-latest
|
|
docker_path: 'kilted/latest'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
- docker_tag: lyrical-latest
|
|
docker_path: 'lyrical/latest'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: all
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Login to DockerHub
|
|
# Only needed when pushing; skipped on pull requests (secrets are
|
|
# unavailable for fork PRs and we don't push there anyway).
|
|
if: github.event_name != 'pull_request'
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: ${{ github.event_name != 'pull_request' }}
|
|
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || matrix.docker_platforms }}
|
|
# Run the test suites inside the image being built. Nothing of them is kept, and
|
|
# the build fails if one does, so no image is published from a tree that fails.
|
|
build-args: |
|
|
RUN_TESTS=1
|
|
file: ./docker/${{ matrix.docker_path }}/Dockerfile
|
|
tags: introlab3it/rtabmap_ros:${{ matrix.docker_tag }}
|
|
no-cache: true
|
|
cache-to: type=inline
|
|
|
|
# Images that install a released rtabmap_ros from apt (docker/<distro>): they hold
|
|
# nothing from the tree under review, so building them on a pull request would only
|
|
# report that the release still installs. Left to the pushes that publish them.
|
|
docker-released:
|
|
if: ${{ github.event_name != 'pull_request' && (github.event_name != 'workflow_dispatch' || github.ref == 'refs/heads/ros2') }}
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
docker_tag: [humble, jazzy, kilted, lyrical]
|
|
include:
|
|
- docker_tag: humble
|
|
docker_path: 'humble'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
- docker_tag: jazzy
|
|
docker_path: 'jazzy'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
- docker_tag: kilted
|
|
docker_path: 'kilted'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
- docker_tag: lyrical
|
|
docker_path: 'lyrical'
|
|
docker_platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
with:
|
|
platforms: all
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Login to DockerHub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
platforms: ${{ matrix.docker_platforms }}
|
|
file: ./docker/${{ matrix.docker_path }}/Dockerfile
|
|
tags: introlab3it/rtabmap_ros:${{ matrix.docker_tag }}
|
|
no-cache: true
|
|
cache-to: type=inline
|