Skip to content

Commit 9ebcfdc

Browse files
committed
Merge branch 'devel'
2 parents d417c18 + 863e069 commit 9ebcfdc

38 files changed

+197
-154
lines changed
+5-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
22
# For troubleshooting, see readme (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
33

4-
name: CI
4+
name: ROS-CI
55

66
# This determines when this workflow is run
77
on: [push, pull_request] # on all pushes and PRs
@@ -11,21 +11,13 @@ jobs:
1111
strategy:
1212
matrix:
1313
env:
14-
- {ROS_DISTRO: melodic}
15-
- {ROS_DISTRO: noetic}
16-
- {ROS_DISTRO: foxy, PRERELEASE: true}
17-
- {ROS_DISTRO: rolling, PRERELEASE: true}
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
1817
env:
19-
CCACHE_DIR: /github/home/.ccache # Enable ccache
2018
BUILDER: colcon
2119
runs-on: ubuntu-latest
2220
steps:
23-
- uses: actions/checkout@v2
24-
# This step will fetch/store the directory used by ccache before/after the ci run
25-
- uses: actions/cache@v2
26-
with:
27-
path: ${{ env.CCACHE_DIR }}
28-
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }}
29-
# Run industrial_ci
21+
- uses: actions/checkout@v4
3022
- uses: 'ros-industrial/industrial_ci@master'
3123
env: ${{ matrix.env }}

CMakeLists.txt

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ ADD_SUBDIRECTORY( octomap )
1717

1818
if(BUILD_OCTOVIS_SUBPROJECT)
1919
ADD_SUBDIRECTORY( octovis )
20-
endif()
20+
endif()
2121

22-
if(BUILD_DYNAMICETD3D_SUBPROJECT)
22+
if(BUILD_DYNAMICETD3D_SUBPROJECT)
2323
ADD_SUBDIRECTORY( dynamicEDT3D )
24-
endif()
25-
26-
24+
endif()

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ To compile the complete package, run:
5656
Binaries and libs will end up in the directories `bin` and `lib` of the
5757
top-level directory where you started the build.
5858

59+
Alternatively, you can build and install octomap using [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
60+
61+
git clone https://github.com/Microsoft/vcpkg.git
62+
cd vcpkg
63+
./bootstrap-vcpkg.sh
64+
./vcpkg integrate install
65+
./vcpkg install octomap
66+
67+
The octomap port in vcpkg is kept up to date by Microsoft team members and community contributors. If the version is out of date, please [create an issue or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
5968

6069
See [octomap README](octomap/README.md) and [octovis README](octovis/README.md) for further
6170
details and hints on compiling, especially under Windows.

dynamicEDT3D/CMakeLists.txt

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.2)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
22
PROJECT(dynamicEDT3D)
33

44
include(CTest)
55
include(GNUInstallDirs)
66

77
# version (e.g. for packaging)
88
set(DYNAMICEDT3D_MAJOR_VERSION 1)
9-
set(DYNAMICEDT3D_MINOR_VERSION 9)
10-
set(DYNAMICEDT3D_PATCH_VERSION 8)
9+
set(DYNAMICEDT3D_MINOR_VERSION 10)
10+
set(DYNAMICEDT3D_PATCH_VERSION 0)
1111
set(DYNAMICEDT3D_VERSION ${DYNAMICEDT3D_MAJOR_VERSION}.${DYNAMICEDT3D_MINOR_VERSION}.${DYNAMICEDT3D_PATCH_VERSION})
1212
set(DYNAMICEDT3D_SOVERSION ${DYNAMICEDT3D_MAJOR_VERSION}.${DYNAMICEDT3D_MINOR_VERSION})
1313

@@ -76,19 +76,20 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packa
7676
#TODO: this conflicts with the octomap uninstall
7777
#it is not only a target name problem, also both will use the same manifest file
7878
#in the same binary directory
79-
#configure_file(
80-
# "${PROJECT_SOURCE_DIR}/CMakeModules/CMakeUninstall.cmake.in"
81-
# "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
82-
# IMMEDIATE @ONLY)
83-
#
84-
#add_custom_target(uninstall
85-
# COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
79+
if(NOT TARGET uninstall)
80+
configure_file(
81+
"${PROJECT_SOURCE_DIR}/CMakeModules/CMakeUninstall.cmake.in"
82+
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
83+
IMMEDIATE @ONLY)
8684

85+
add_custom_target(uninstall
86+
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
87+
endif()
8788

8889
# Export the package for use from the build-tree
8990
# (this registers the build-tree with a global CMake-registry)
9091
export(PACKAGE dynamicEDT3D)
91-
92+
9293
# Create a dynamicEDT3DConfig.cmake file for the use from the build tree
9394
set(DYNAMICEDT3D_INCLUDE_DIRS "${INCLUDE_DIRS}")
9495
set(DYNAMICEDT3D_LIB_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
@@ -122,7 +123,7 @@ WRITE_BASIC_PACKAGE_VERSION_FILE(
122123
#install(EXPORT FooBarLibraryDepends DESTINATION
123124
# "${INSTALL_DATA_DIR}/FooBar/CMake"
124125
# COMPONENT dev)
125-
126+
126127
# Create a dynamicEDT3DConfig.cmake file for the use from the install tree
127128
# and install it
128129
set(DYNAMICEDT3D_INCLUDE_DIRS "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
@@ -145,7 +146,7 @@ WRITE_BASIC_PACKAGE_VERSION_FILE(
145146

146147
install(FILES
147148
"${PROJECT_BINARY_DIR}/InstallFiles/dynamicEDT3DConfig.cmake"
148-
"${PROJECT_BINARY_DIR}/InstallFiles/dynamicEDT3DConfig-version.cmake"
149+
"${PROJECT_BINARY_DIR}/InstallFiles/dynamicEDT3DConfig-version.cmake"
149150
DESTINATION "${CMAKE_INSTALL_DATADIR}/dynamicEDT3D")
150151

151152
# Write pkgconfig-file:
@@ -157,7 +158,7 @@ install_pkg_config_file(dynamicEDT3D
157158
VERSION ${DYNAMICEDT3D_VERSION})
158159

159160

160-
# Documentation
161+
# Documentation
161162
FIND_PACKAGE(Doxygen)
162163
IF(DOXYGEN_FOUND)
163164
ADD_CUSTOM_TARGET(docs_dynamicEDT3D ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/dynamicEDT3D.dox
@@ -169,7 +170,7 @@ ENDIF(DOXYGEN_FOUND)
169170
INCLUDE(CPackSettings)
170171

171172
# Finished:
172-
MESSAGE ("\n")
173+
MESSAGE (STATUS "\n")
173174
MESSAGE (STATUS "Compile dynamicEDT3D using: make")
174175
MESSAGE (STATUS "Install dynamicEDT3D using: make install")
175176
MESSAGE (STATUS " (be sure to set the correct CMAKE_INSTALL_PREFIX before)")

dynamicEDT3D/CMakeModules/CompilerSettings.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ IF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
44
SET(CMAKE_BUILD_TYPE Release)
55
ENDIF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
66

7-
MESSAGE ("\n")
7+
MESSAGE (STATUS "\n")
88
MESSAGE (STATUS "${PROJECT_NAME} building as ${CMAKE_BUILD_TYPE}")
99

1010
# OCTOMAP_OMP = enable OpenMP
1111
# SET(OCTOMAP_OMP 1 CACHE BOOL "Enable/disable OpenMP")
1212
# IF($ENV{OCTOMAP_OMP})
13-
# SET(OCTOMAP_OMP $ENV{OCTOMAP_OMP})
13+
# SET(OCTOMAP_OMP $ENV{OCTOMAP_OMP})
1414
# MESSAGE(STATUS "Found OCTOMAP_OMP=${OCTOMAP_OMP}")
1515
# ENDIF($ENV{OCTOMAP_OMP})
1616

@@ -21,7 +21,7 @@ IF (CMAKE_COMPILER_IS_GNUCC)
2121
SET (CMAKE_CXX_FLAGS_RELEASE "-O3 -funroll-loops -DNDEBUG")
2222
SET (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
2323
# Shared object compilation under 64bit (vtable)
24-
ADD_DEFINITIONS(-fPIC)
24+
ADD_DEFINITIONS(-fPIC)
2525
# IF(OCTOMAP_OMP)
2626
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp")
2727
# SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -fopenmp")

dynamicEDT3D/package.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<package format="3">
22
<name>dynamic_edt_3d</name>
3-
<version>1.9.8</version>
3+
<version>1.10.0</version>
44
<description> The dynamicEDT3D library implements an inrementally updatable Euclidean distance transform (EDT) in 3D. It comes with a wrapper to use the OctoMap 3D representation and hooks into the change detection of the OctoMap library to propagate changes to the EDT.</description>
55

66
<author email="[email protected]">Christoph Sprunk</author>

octomap/CHANGELOG.txt

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
v1.10.0: 2024-03-19
2+
===================
3+
- CMake: Fix duplicate uninstall target (#406)
4+
- Fix errors with recent compilers and C++17/20 standard (#394)
5+
- Fix ScanGraph.h c++20 compilation error (#398)
6+
- Add smaller than operator for vectors (#330)
7+
- Add vcpkg installation instructions to Readme (#382)
8+
- Fix test dependencies in CMakeLists (#374)
9+
- replace deprecated std::iterator by defining required types (#373)
10+
- octovis: fix issue with saving not showing any dialog (#414)
11+
- octovis: Fix deprecated QString and glext redefinition warning (#375)
12+
- octovis: Declare missing dependency on opengl (#408)
13+
- ROS: Updates to compile cleanly on ROS 2 Rolling on Ubuntu 24.04 (#415)
14+
- ROS: Remove ccache for ROS-Industrial CI yml (#413)
15+
- ROS: Remove EOL ROS distros from CI actions
16+
17+
18+
119
v1.9.8: 2022-05-12
220
==================
321
- Also set lowercase octomap_* variables in CMake config (#369)

octomap/CMakeLists.txt

+15-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.2)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
22
PROJECT( octomap )
33

44
include(CTest)
55
include(GNUInstallDirs)
66

77
# version (e.g. for packaging)
88
set(OCTOMAP_MAJOR_VERSION 1)
9-
set(OCTOMAP_MINOR_VERSION 9)
10-
set(OCTOMAP_PATCH_VERSION 8)
9+
set(OCTOMAP_MINOR_VERSION 10)
10+
set(OCTOMAP_PATCH_VERSION 0)
1111
set(OCTOMAP_VERSION ${OCTOMAP_MAJOR_VERSION}.${OCTOMAP_MINOR_VERSION}.${OCTOMAP_PATCH_VERSION})
1212
set(OCTOMAP_SOVERSION ${OCTOMAP_MAJOR_VERSION}.${OCTOMAP_MINOR_VERSION})
1313
if(COMMAND cmake_policy)
@@ -77,18 +77,20 @@ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages
7777
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)
7878

7979
# uninstall target
80-
configure_file(
81-
"${PROJECT_SOURCE_DIR}/CMakeModules/CMakeUninstall.cmake.in"
82-
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
83-
IMMEDIATE @ONLY)
80+
if(NOT TARGET uninstall)
81+
configure_file(
82+
"${PROJECT_SOURCE_DIR}/CMakeModules/CMakeUninstall.cmake.in"
83+
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
84+
IMMEDIATE @ONLY)
8485

85-
add_custom_target(uninstall
86-
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
86+
add_custom_target(uninstall
87+
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
88+
endif()
8789

8890
# Export the package for use from the build-tree
8991
# (this registers the build-tree with a global CMake-registry)
9092
export(PACKAGE octomap)
91-
93+
9294
# Create a octomap-config.cmake file for the use from the build tree
9395
set(OCTOMAP_INCLUDE_DIRS "${INCLUDE_DIRS}")
9496
set(OCTOMAP_LIB_DIR "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
@@ -147,7 +149,7 @@ WRITE_BASIC_PACKAGE_VERSION_FILE(
147149

148150
install(FILES
149151
"${PROJECT_BINARY_DIR}/InstallFiles/octomap-config.cmake"
150-
"${PROJECT_BINARY_DIR}/InstallFiles/octomap-config-version.cmake"
152+
"${PROJECT_BINARY_DIR}/InstallFiles/octomap-config-version.cmake"
151153
DESTINATION "${CMAKE_INSTALL_DATADIR}/octomap")
152154

153155
# Write pkgconfig-file:
@@ -158,7 +160,7 @@ install_pkg_config_file(octomap
158160
REQUIRES
159161
VERSION ${OCTOMAP_VERSION})
160162

161-
# Documentation
163+
# Documentation
162164
FIND_PACKAGE(Doxygen)
163165
IF(DOXYGEN_FOUND)
164166
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/octomap.dox.in ${CMAKE_CURRENT_BINARY_DIR}/octomap.dox @ONLY)
@@ -171,7 +173,7 @@ ENDIF(DOXYGEN_FOUND)
171173
INCLUDE(CPackSettings)
172174

173175
# Finished:
174-
MESSAGE ("\n")
176+
MESSAGE (STATUS "\n")
175177
MESSAGE (STATUS "Compile octomap using: make")
176178
MESSAGE (STATUS "Install octomap using: make install")
177179
MESSAGE (STATUS " (be sure to set the correct CMAKE_INSTALL_PREFIX before)")

octomap/CMakeModules/CompilerSettings.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ IF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
44
SET(CMAKE_BUILD_TYPE Release)
55
ENDIF(NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
66

7-
MESSAGE ("\n")
7+
MESSAGE (STATUS "\n")
88
MESSAGE (STATUS "${PROJECT_NAME} building as ${CMAKE_BUILD_TYPE}")
99

1010
# COMPILER FLAGS

octomap/include/octomap/AbstractOcTree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ namespace octomap {
5151
friend class StaticMapInit;
5252
public:
5353
AbstractOcTree();
54-
virtual ~AbstractOcTree() {};
54+
virtual ~AbstractOcTree() {}
5555

5656
/// virtual constructor: creates a new object of same type
5757
virtual AbstractOcTree* create() const = 0;

octomap/include/octomap/AbstractOccupancyOcTree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace octomap {
5252
class AbstractOccupancyOcTree : public AbstractOcTree {
5353
public:
5454
AbstractOccupancyOcTree();
55-
virtual ~AbstractOccupancyOcTree() {};
55+
virtual ~AbstractOccupancyOcTree() {}
5656

5757
//-- IO
5858

octomap/include/octomap/ColorOcTree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ namespace octomap {
192192
* StaticMemberInitializer, causing this tree failing to register.
193193
* Needs to be called from the constructor of this octree.
194194
*/
195-
void ensureLinking() {};
195+
void ensureLinking() {}
196196
};
197197
/// static member to ensure static initialization (only once)
198198
static StaticMemberInitializer colorOcTreeMemberInit;

octomap/include/octomap/CountingOcTree.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace octomap {
110110
* StaticMemberInitializer, causing this tree failing to register.
111111
* Needs to be called from the constructor of this octree.
112112
*/
113-
void ensureLinking() {};
113+
void ensureLinking() {}
114114
};
115115
/// static member to ensure static initialization (only once)
116116
static StaticMemberInitializer countingOcTreeMemberInit;

octomap/include/octomap/OcTree.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace octomap {
5959
*/
6060
OcTree(std::string _filename);
6161

62-
virtual ~OcTree(){};
62+
virtual ~OcTree(){}
6363

6464
/// virtual constructor: creates a new object of same type
6565
/// (Covariant return type requires an up-to-date compiler)
@@ -89,7 +89,7 @@ namespace octomap {
8989
* StaticMemberInitializer, causing this tree failing to register.
9090
* Needs to be called from the constructor of this octree.
9191
*/
92-
void ensureLinking() {};
92+
void ensureLinking() {}
9393
};
9494

9595
/// to ensure static initialization (only once)

octomap/include/octomap/OcTreeBase.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace octomap {
4343
template <class NODE>
4444
class OcTreeBase : public OcTreeBaseImpl<NODE,AbstractOcTree> {
4545
public:
46-
OcTreeBase<NODE>(double res) : OcTreeBaseImpl<NODE,AbstractOcTree>(res) {};
46+
OcTreeBase(double res) : OcTreeBaseImpl<NODE,AbstractOcTree>(res) {}
4747

4848
/// virtual constructor: creates a new object of same type
4949
/// (Covariant return type requires an up-to-date compiler)

octomap/include/octomap/OcTreeBaseImpl.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ namespace octomap {
244244
virtual size_t memoryUsage() const;
245245

246246
/// \return Memory usage of a single octree node
247-
virtual inline size_t memoryUsageNode() const {return sizeof(NODE); };
247+
virtual inline size_t memoryUsageNode() const {return sizeof(NODE); }
248248

249249
/// \return Memory usage of a full grid of the same size as the OcTree in bytes (for comparison)
250250
/// \note this can be larger than the adressable memory - size_t may not be enough to hold it!
@@ -324,12 +324,12 @@ namespace octomap {
324324
typedef leaf_iterator iterator;
325325

326326
/// @return beginning of the tree as leaf iterator
327-
iterator begin(unsigned char maxDepth=0) const {return iterator(this, maxDepth);};
327+
iterator begin(unsigned char maxDepth=0) const {return iterator(this, maxDepth);}
328328
/// @return end of the tree as leaf iterator
329-
const iterator end() const {return leaf_iterator_end;}; // TODO: RVE?
329+
const iterator end() const {return leaf_iterator_end;} // TODO: RVE?
330330

331331
/// @return beginning of the tree as leaf iterator
332-
leaf_iterator begin_leafs(unsigned char maxDepth=0) const {return leaf_iterator(this, maxDepth);};
332+
leaf_iterator begin_leafs(unsigned char maxDepth=0) const {return leaf_iterator(this, maxDepth);}
333333
/// @return end of the tree as leaf iterator
334334
const leaf_iterator end_leafs() const {return leaf_iterator_end;}
335335

octomap/include/octomap/OcTreeDataNode.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ namespace octomap {
100100
OCTOMAP_DEPRECATED(bool hasChildren() const);
101101

102102
/// @return value stored in the node
103-
T getValue() const{return value;};
103+
T getValue() const{return value;}
104104
/// sets value to be stored in the node
105-
void setValue(T v) {value = v;};
105+
void setValue(T v) {value = v;}
106106

107107
// file IO:
108108

0 commit comments

Comments
 (0)