mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-13 05:19:51 +08:00
* New rtabmap-reduceGraph CLI tool * fixed some edge cases * Regenerating optimized map if there was one before reducing the graph * addMoreLoopClosures: refactored how ctrl-c is handled to stop faster when no loop closures are added * Added kilted status * Make offline tool always propagate neighbor merged links * removed a parameter * fixed disconnected graph * fixed --help * Added error log on Kp/NNStrategy not compatible with huge vocabulary. ReduceGraph/DetectMoreLoopClosures: Make sure original parameters are saved back on closing. g2o: fixing optimizer to Levenberg for SBA to avoid [SetJac] infinite jac fatal error. * exposing neighbor merged ratio parameter to the tool * show param in log * refactored detectMoreLoopClosures to ignore too close nodes in terms of neighbor links based on Mem/STMSize parameter. Reduce graph: added direction parameter. * Simplified: removed ratio parameter, removed recursive reduction. Just don't reduce if a NM link is longer than maxDistance. * Removed NNStrategy override, as it was still done on closing when we changed back to original params * DBViewer: show missing links when showing OptimizedPoses in GraphView, fixed clicking on landmark links * DetectMoreLoopClosures: Added support for min graph distance option in MainWindow and DbViewer * slight renaming of ROS jobs * reprocess: added option --params_last
79 lines
2.7 KiB
YAML
79 lines
2.7 KiB
YAML
name: CMake-ROS
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
env:
|
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
BUILD_TYPE: Release
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
build:
|
|
# The CMake configure and build commands are platform agnostic and should work equally
|
|
# well on Windows or Mac. You can convert this to a matrix build if you need
|
|
# cross-platform coverage.
|
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
|
|
name: ${{ matrix.ros_distribution }}-${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
ros_distribution: [ humble, jazzy, kilted, rolling ]
|
|
include:
|
|
- ros_distribution: 'humble'
|
|
os: ubuntu-22.04
|
|
- ros_distribution: 'jazzy'
|
|
os: ubuntu-24.04
|
|
- ros_distribution: 'kilted'
|
|
os: ubuntu-24.04
|
|
- ros_distribution: 'rolling'
|
|
os: ubuntu-24.04
|
|
|
|
steps:
|
|
- name: Setup ROS2
|
|
# https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debs.html
|
|
run: |
|
|
sudo apt install software-properties-common
|
|
sudo add-apt-repository universe
|
|
sudo apt update && sudo apt install curl -y
|
|
export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}')
|
|
curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb"
|
|
sudo apt install /tmp/ros2-apt-source.deb
|
|
sudo apt update
|
|
|
|
- uses: ros-tooling/[email protected]
|
|
with:
|
|
required-ros-distributions: ${{ matrix.ros_distribution }}
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
|
|
rosdep update
|
|
rosdep install --from-paths ${{github.workspace}} -y
|
|
|
|
- name: Configure CMake
|
|
run: |
|
|
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
|
|
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
|
|
|
|
- name: Build
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
|
|
- name: Info
|
|
working-directory: ${{github.workspace}}/build/bin
|
|
run: |
|
|
source /opt/ros/${{ matrix.ros_distribution }}/setup.bash
|
|
./rtabmap-console --version
|
|
|