Skip to content

Commit 4475456

Browse files
committed
Merge branch 'devel' for 2.0.0 release
2 parents 9ebcfdc + 6d1c3df commit 4475456

115 files changed

Lines changed: 14857 additions & 13142 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
2+
# Single package (subdirectory) builds of the components, based on CMake starter workflow template
3+
name: Single package builds Linux
4+
5+
on: [push, fork, pull_request]
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
13+
fail-fast: true
14+
15+
matrix:
16+
os: [ubuntu-latest]
17+
build_type: [Release, Debug]
18+
c_compiler: [gcc, clang]
19+
include:
20+
- os: ubuntu-latest
21+
c_compiler: gcc
22+
cpp_compiler: g++
23+
- os: ubuntu-latest
24+
c_compiler: clang
25+
cpp_compiler: clang++
26+
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: Install Qt dependencies
32+
run: sudo apt-get -y install libqglviewer-dev-qt5 libqt5opengl5-dev
33+
34+
- name: Set reusable strings
35+
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
36+
id: strings
37+
shell: bash
38+
run: |
39+
echo "octomap-build-output-dir=${{ github.workspace }}/octomap/build" >> "$GITHUB_OUTPUT"
40+
echo "dynamicEDT3D-build-output-dir=${{ github.workspace }}/dynamicEDT3D/build" >> "$GITHUB_OUTPUT"
41+
echo "octovis-build-output-dir=${{ github.workspace }}/octovis/build" >> "$GITHUB_OUTPUT"
42+
echo "common-install-dir=${{ github.workspace }}/install" >> "$GITHUB_OUTPUT"
43+
44+
- name: octomap - Configure CMake
45+
working-directory: octomap
46+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
47+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
48+
run: >
49+
cmake -B ${{ steps.strings.outputs.octomap-build-output-dir }}
50+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
51+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
52+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
53+
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.common-install-dir }}
54+
-S ${{ github.workspace }}/octomap
55+
56+
- name: octomap - Build
57+
working-directory: octomap
58+
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
59+
run: cmake --build ${{ steps.strings.outputs.octomap-build-output-dir }} --config ${{ matrix.build_type }}
60+
61+
- name: octomap - Test
62+
working-directory: ${{ steps.strings.outputs.octomap-build-output-dir }}
63+
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
64+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
65+
run: ctest --build-config ${{ matrix.build_type }}
66+
67+
- name: octomap - Install
68+
run: |
69+
export CMAKE_PREFIX_PATH=${{ steps.strings.outputs.common-install-dir }}
70+
cmake --install ${{ steps.strings.outputs.octomap-build-output-dir }} --config ${{ matrix.build_type }}
71+
72+
73+
- name: dynamicEDT3D - Configure CMake
74+
working-directory: dynamicEDT3D
75+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
76+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
77+
run: |
78+
export CMAKE_PREFIX_PATH=${{ steps.strings.outputs.common-install-dir }}
79+
cmake -B ${{ steps.strings.outputs.dynamicEDT3D-build-output-dir }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S ${{ github.workspace }}/dynamicEDT3D
80+
81+
- name: dynamicEDT3D - Build
82+
working-directory: dynamicEDT3D
83+
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
84+
run: |
85+
echo $CMAKE_PREFIX_PATH
86+
cmake --build ${{ steps.strings.outputs.dynamicEDT3D-build-output-dir }} --config ${{ matrix.build_type }}
87+
88+
# No tests available
89+
90+
- name: octovis - Configure CMake
91+
working-directory: octovis
92+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
93+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
94+
run: |
95+
export CMAKE_PREFIX_PATH=${{ steps.strings.outputs.common-install-dir }}
96+
cmake -B ${{ steps.strings.outputs.octovis-build-output-dir }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S ${{ github.workspace }}/octovis
97+
98+
- name: octovis - Build
99+
working-directory: octovis
100+
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
101+
run: cmake --build ${{ steps.strings.outputs.octovis-build-output-dir }} --config ${{ matrix.build_type }}
102+
103+
# No tests available
104+
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
2+
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
3+
name: CMake multi-platforms complete distribution
4+
5+
on: [push, fork, pull_request]
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
13+
fail-fast: true
14+
15+
# Set up a matrix to run the following 3 configurations:
16+
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
17+
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
18+
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
19+
#
20+
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
21+
matrix:
22+
# removed for now: windows-latest
23+
os: [ubuntu-latest]
24+
build_type: [Release, Debug]
25+
c_compiler: [gcc, clang, cl]
26+
include:
27+
# Deactivate windows for now, fails to build/link
28+
#- os: windows-latest
29+
# c_compiler: cl
30+
# cpp_compiler: cl
31+
- os: ubuntu-latest
32+
c_compiler: gcc
33+
cpp_compiler: g++
34+
- os: ubuntu-latest
35+
c_compiler: clang
36+
cpp_compiler: clang++
37+
exclude:
38+
- os: windows-latest
39+
c_compiler: gcc
40+
- os: windows-latest
41+
c_compiler: clang
42+
- os: ubuntu-latest
43+
c_compiler: cl
44+
45+
steps:
46+
- uses: actions/checkout@v4
47+
48+
- name: Install Qt dependencies
49+
run: sudo apt-get -y install libqglviewer-dev-qt5 libqt5opengl5-dev
50+
51+
- name: Set reusable strings
52+
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
53+
id: strings
54+
shell: bash
55+
run: |
56+
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
57+
echo "common-install-dir=${{ github.workspace }}/install" >> "$GITHUB_OUTPUT"
58+
59+
- name: Configure CMake
60+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
61+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
62+
run: >
63+
cmake -B ${{ steps.strings.outputs.build-output-dir }}
64+
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
65+
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
66+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
67+
-DCMAKE_INSTALL_PREFIX=${{ steps.strings.outputs.common-install-dir }}
68+
-S ${{ github.workspace }}
69+
70+
- name: Build
71+
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
72+
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
73+
74+
- name: Test
75+
working-directory: ${{ steps.strings.outputs.build-output-dir }}
76+
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
77+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
78+
run: ctest --build-config ${{ matrix.build_type }}
79+
80+
- name: Install
81+
run: cmake --install ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Single package builds of the components, based on CMake starter workflow template
2+
name: Single package builds Windows (octomap only)
3+
4+
on: [push, fork, pull_request]
5+
6+
jobs:
7+
build:
8+
runs-on: windows-latest
9+
continue-on-error: true
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
build_type: [Release, Debug]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up MSVC environment
20+
uses: ilammy/msvc-dev-cmd@v1
21+
22+
- name: Set BUILD_DIR environment variable
23+
run: echo "BUILD_DIR=build" >> $GITHUB_ENV
24+
25+
- name: octomap - Configure CMake
26+
working-directory: octomap
27+
run: cmake -B build -S . -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
28+
29+
- name: octomap - Build
30+
working-directory: octomap
31+
run: cmake --build build --config ${{ matrix.build_type }} --parallel
32+
33+
- name: octomap - Test
34+
working-directory: octomap
35+
run: ctest --test-dir build --output-on-failure --build-config ${{ matrix.build_type }}
36+
37+
# TODO: try to build other packages on Windows as well
38+
#- name: dynamicEDT3D - Configure CMake
39+
# working-directory: dynamicEDT3D
40+
# run: cmake -B build -S . -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
41+
42+
#- name: dynamicEDT3D - Build
43+
# working-directory: dynamicEDT3D
44+
# run: cmake --build build --config ${{ matrix.build_type }} --parallel
45+
46+
#- name: octovis - Configure CMake
47+
# working-directory: octovis
48+
# run: cmake -B build -S . -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
49+
50+
#- name: octovis - Build
51+
# working-directory: octovis
52+
# run: cmake --build build --config ${{ matrix.build_type }} --parallel
53+

‎.github/workflows/industrial_ci_action.yml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33

44
name: ROS-CI
55

6-
# This determines when this workflow is run
7-
on: [push, pull_request] # on all pushes and PRs
6+
# This determines when this workflow is run. Long-running ROS CI jobs only on devel and master
7+
on:
8+
push:
9+
branches: [ "devel", "master", "main" ]
10+
pull_request:
11+
branches: [ "devel", "master", "main" ]
812

913
jobs:
1014
CI:
1115
strategy:
1216
matrix:
1317
env:
14-
- {ROS_DISTRO: noetic, PRERELEASE: true}
15-
- {ROS_DISTRO: iron, PRERELEASE: true}
16-
#- {ROS_DISTRO: rolling} # 2024-03-12 temporarily deactivate until transitin to Ubuntu Noble is complete
18+
- {ROS_DISTRO: jazzy, PRERELEASE: true}
19+
- {ROS_DISTRO: humble, PRERELEASE: true}
20+
#- {ROS_DISTRO: rolling} # 2024-03-12 temporarily deactivate until transition to Ubuntu Noble is complete
1721
env:
1822
BUILDER: colcon
1923
runs-on: ubuntu-latest

‎.gitignore‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,14 @@ Makefile
2626
# our binary files, in case someone forgets them in the source dir:
2727
*.bt
2828
*.ot
29-
*.graph
29+
*.pcd
30+
31+
# IDE / logs
32+
*.graph
33+
.vscode/
34+
octomap/log/
35+
octomap/src/.vscode/
36+
octovis/src/extern/QGLViewer/.qmake.stash
37+
38+
# ccache
39+
.cache

‎.travis.yml‎

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎CMakeLists.txt‎

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.2)
2-
PROJECT( octomap-distribution )
1+
cmake_minimum_required(VERSION 3.10...4.1)
2+
project(
3+
octomap-distribution
4+
VERSION 2.0.0
5+
LANGUAGES NONE
6+
)
37

4-
ENABLE_TESTING() # enable CTest environment of subprojects
5-
set(CMAKE_POSITION_INDEPENDENT_CODE ON) # enables -fPIC in applicable compilers (required to avoid link errors in some cases)
8+
include(CTest)
69

7-
option(BUILD_OCTOVIS_SUBPROJECT "Build targets from subproject octovis" ON)
8-
option(BUILD_DYNAMICETD3D_SUBPROJECT "Build targets from subproject dynamicEDT3D" ON)
9-
option(OCTOVIS_QT5 "Link Octovis against Qt5?" ON)
10-
11-
if(OCTOVIS_QT5)
12-
# Compiling against QT5 requires C++11.
13-
set(CMAKE_CXX_STANDARD 11)
14-
endif(OCTOVIS_QT5)
10+
if(
11+
CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR
12+
AND NOT CMAKE_CONFIGURATION_TYPES
13+
AND NOT CMAKE_BUILD_TYPE
14+
)
15+
set(CMAKE_BUILD_TYPE Release)
16+
endif()
1517

16-
ADD_SUBDIRECTORY( octomap )
18+
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
19+
option(BUILD_OCTOVIS_SUBPROJECT "Build targets from subproject octovis" ON)
20+
option(BUILD_DYNAMICETD3D_SUBPROJECT
21+
"Build targets from subproject dynamicEDT3D" ON
22+
)
1723

24+
add_subdirectory(octomap)
1825
if(BUILD_OCTOVIS_SUBPROJECT)
19-
ADD_SUBDIRECTORY( octovis )
26+
set(OCTOVIS_BUILD_OPTIONAL TRUE)
27+
add_subdirectory(octovis)
2028
endif()
21-
2229
if(BUILD_DYNAMICETD3D_SUBPROJECT)
23-
ADD_SUBDIRECTORY( dynamicEDT3D )
30+
add_subdirectory(dynamicEDT3D)
2431
endif()

0 commit comments

Comments
 (0)