Skip to content

Commit aa6372b

Browse files
committed
Merge branch 'devel' for v1.9.7 release
2 parents c4a4304 + b5cd2a2 commit aa6372b

File tree

10 files changed

+50
-25
lines changed

10 files changed

+50
-25
lines changed

.github/workflows/industrial_ci_action.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ jobs:
1313
env:
1414
- {ROS_DISTRO: melodic}
1515
- {ROS_DISTRO: noetic}
16-
- {ROS_DISTRO: foxy}
17-
- {ROS_DISTRO: rolling}
16+
- {ROS_DISTRO: foxy, PRERELEASE: true}
17+
- {ROS_DISTRO: rolling, PRERELEASE: true}
1818
env:
1919
CCACHE_DIR: /github/home/.ccache # Enable ccache
20-
PRERELEASE: true # always run the prerelease tests
2120
BUILDER: colcon
22-
# CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=Debug'
2321
runs-on: ubuntu-latest
2422
steps:
2523
- uses: actions/checkout@v2

dynamicEDT3D/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include(GNUInstallDirs)
77
# version (e.g. for packaging)
88
set(DYNAMICEDT3D_MAJOR_VERSION 1)
99
set(DYNAMICEDT3D_MINOR_VERSION 9)
10-
set(DYNAMICEDT3D_PATCH_VERSION 6)
10+
set(DYNAMICEDT3D_PATCH_VERSION 7)
1111
set(DYNAMICEDT3D_VERSION ${DYNAMICEDT3D_MAJOR_VERSION}.${DYNAMICEDT3D_MINOR_VERSION}.${DYNAMICEDT3D_PATCH_VERSION})
1212
set(DYNAMICEDT3D_SOVERSION ${DYNAMICEDT3D_MAJOR_VERSION}.${DYNAMICEDT3D_MINOR_VERSION})
1313

@@ -69,6 +69,10 @@ install(FILES ${dynamicEDT3D_HDRS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/dyna
6969
# Install catkin package.xml, attention package.xml names the catkin package "dynamic_edt_3d", so this is also the location where it needs to be installed to (and not "dynamicEDT3D")
7070
install(FILES package.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/dynamic_edt_3d")
7171

72+
# Allows Colcon to find non-Ament packages when using workspace underlays
73+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
74+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)
75+
7276
#TODO: this conflicts with the octomap uninstall
7377
#it is not only a target name problem, also both will use the same manifest file
7478
#in the same binary directory

dynamicEDT3D/package.xml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
<package format="2">
1+
<package format="3">
22
<name>dynamic_edt_3d</name>
3-
<version>1.9.6</version>
3+
<version>1.9.7</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>
77
<maintainer email="[email protected]">Christoph Sprunk</maintainer>
8-
<maintainer email="w.merkt+oss@gmail.com">Wolfgang Merkt</maintainer>
8+
<maintainer email="opensource@wolfgangmerkt.com">Wolfgang Merkt</maintainer>
99
<license>BSD</license>
1010

1111
<url type="website">http://octomap.github.io</url>
1212
<url type="bugtracker">https://github.com/OctoMap/octomap/issues</url>
1313

1414
<depend>octomap</depend>
15-
<buildtool_depend>cmake</buildtool_depend>
1615

16+
<!-- The following tags are recommended by REP-136 -->
17+
<exec_depend condition="$ROS_VERSION == 1">catkin</exec_depend>
18+
<exec_depend condition="$ROS_VERSION == 2">ament_cmake</exec_depend>
19+
20+
<buildtool_depend>cmake</buildtool_depend>
1721
<export>
1822
<build_type>cmake</build_type>
1923
</export>

octomap/CHANGELOG.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
v1.9.7: 2021-05-03
2+
==================
3+
- Use explicit casting to prevent implicit sign conversion
4+
- REP-136 compliance and compatibility with ROS1 & ROS2 using single branch
5+
16
v1.9.6: 2021-01-23
27
==================
38
- Fixed ifstream >> byte with c++17

octomap/CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include(GNUInstallDirs)
77
# version (e.g. for packaging)
88
set(OCTOMAP_MAJOR_VERSION 1)
99
set(OCTOMAP_MINOR_VERSION 9)
10-
set(OCTOMAP_PATCH_VERSION 6)
10+
set(OCTOMAP_PATCH_VERSION 7)
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)
@@ -69,9 +69,13 @@ install(FILES ${octomap_HDRS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/octomap")
6969
file(GLOB octomap_math_HDRS ${PROJECT_SOURCE_DIR}/include/octomap/math/*.h)
7070
install(FILES ${octomap_math_HDRS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/octomap/math")
7171

72-
# Install catkin package.xml
72+
# Install package.xml (catkin/ament/rosdep)
7373
install(FILES package.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/octomap")
7474

75+
# Allows Colcon to find non-Ament packages when using workspace underlays
76+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
77+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)
78+
7579
# uninstall target
7680
configure_file(
7781
"${PROJECT_SOURCE_DIR}/CMakeModules/CMakeUninstall.cmake.in"

octomap/include/octomap/OcTreeBaseImpl.hxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ namespace octomap {
10571057
float step_size = this->resolution * pow(2, tree_depth-depth);
10581058
for (int i=0;i<3;++i) {
10591059
diff[i] = pmax_clamped(i) - pmin_clamped(i);
1060-
steps[i] = floor(diff[i] / step_size);
1060+
steps[i] = static_cast<unsigned int>(floor(diff[i] / step_size));
10611061
// std::cout << "bbx " << i << " size: " << diff[i] << " " << steps[i] << " steps\n";
10621062
}
10631063

octomap/include/octomap/OccupancyOcTreeBase.hxx

+4-4
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ namespace octomap {
784784
// Line dot normal will be zero if they are parallel, in which case no intersection can be the entry one
785785
// if there is an intersection does it occur in the bounded plane of the voxel
786786
// if yes keep only the closest (smallest distance to sensor origin).
787-
if((lineDotNormal = normalX.dot(direction))){ // Ensure lineDotNormal is non-zero (assign and test)
787+
if((lineDotNormal = normalX.dot(direction)) != 0.0){ // Ensure lineDotNormal is non-zero (assign and test)
788788
d = (pointXNeg - origin).dot(normalX) / lineDotNormal;
789789
intersect = direction * float(d) + origin;
790790
if(!(intersect(1) < (pointYNeg(1) - 1e-6) || intersect(1) > (pointYPos(1) + 1e-6) ||
@@ -802,7 +802,7 @@ namespace octomap {
802802
}
803803
}
804804

805-
if((lineDotNormal = normalY.dot(direction))){ // Ensure lineDotNormal is non-zero (assign and test)
805+
if((lineDotNormal = normalY.dot(direction)) != 0.0){ // Ensure lineDotNormal is non-zero (assign and test)
806806
d = (pointYNeg - origin).dot(normalY) / lineDotNormal;
807807
intersect = direction * float(d) + origin;
808808
if(!(intersect(0) < (pointXNeg(0) - 1e-6) || intersect(0) > (pointXPos(0) + 1e-6) ||
@@ -820,7 +820,7 @@ namespace octomap {
820820
}
821821
}
822822

823-
if((lineDotNormal = normalZ.dot(direction))){ // Ensure lineDotNormal is non-zero (assign and test)
823+
if((lineDotNormal = normalZ.dot(direction)) != 0.0){ // Ensure lineDotNormal is non-zero (assign and test)
824824
d = (pointZNeg - origin).dot(normalZ) / lineDotNormal;
825825
intersect = direction * float(d) + origin;
826826
if(!(intersect(0) < (pointXNeg(0) - 1e-6) || intersect(0) > (pointXPos(0) + 1e-6) ||
@@ -839,7 +839,7 @@ namespace octomap {
839839
}
840840

841841
// Substract (add) a fraction to ensure no ambiguity on the starting voxel
842-
// Don't start on a bondary.
842+
// Don't start on a boundary.
843843
if(found)
844844
intersection = direction * float(outD + delta) + origin;
845845

octomap/package.xml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
<package format="2">
1+
<package format="3">
22
<name>octomap</name>
3-
<version>1.9.6</version>
3+
<version>1.9.7</version>
44
<description>The OctoMap library implements a 3D occupancy grid mapping approach, providing data structures and mapping algorithms in C++. The map implementation is based on an octree. See
55
http://octomap.github.io for details.</description>
66

77
<author email="[email protected]">Kai M. Wurm</author>
88
<author email="[email protected]">Armin Hornung</author>
99
<maintainer email="[email protected]">Armin Hornung</maintainer>
10-
<maintainer email="w.merkt+oss@gmail.com">Wolfgang Merkt</maintainer>
10+
<maintainer email="opensource@wolfgangmerkt.com">Wolfgang Merkt</maintainer>
1111
<license>BSD</license>
1212

1313
<url type="website">http://octomap.github.io</url>
1414
<url type="bugtracker">https://github.com/OctoMap/octomap/issues</url>
1515

16-
<buildtool_depend>cmake</buildtool_depend>
16+
<!-- The following tags are recommended by REP-136 -->
17+
<exec_depend condition="$ROS_VERSION == 1">catkin</exec_depend>
18+
<exec_depend condition="$ROS_VERSION == 2">ament_cmake</exec_depend>
1719

20+
<buildtool_depend>cmake</buildtool_depend>
1821
<export>
1922
<build_type>cmake</build_type>
2023
</export>

octovis/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include(GNUInstallDirs)
77
# # version (e.g. for packaging)
88
set(OCTOVIS_MAJOR_VERSION 1)
99
set(OCTOVIS_MINOR_VERSION 9)
10-
set(OCTOVIS_PATCH_VERSION 6)
10+
set(OCTOVIS_PATCH_VERSION 7)
1111
set(OCTOVIS_VERSION ${OCTOVIS_MAJOR_VERSION}.${OCTOVIS_MINOR_VERSION}.${OCTOVIS_PATCH_VERSION})
1212
set(OCTOVIS_SOVERSION ${OCTOVIS_MAJOR_VERSION}.${OCTOVIS_MINOR_VERSION})
1313
# get rid of a useless warning:
@@ -158,6 +158,10 @@ IF(BUILD_VIEWER)
158158

159159
# Install catkin package.xml
160160
install(FILES package.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/octovis")
161+
162+
# Allows Colcon to find non-Ament packages when using workspace underlays
163+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
164+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)
161165

162166
ELSE()
163167
MESSAGE ( "Unfortunately, the viewer (octovis) can not be built because some requirements are missing.")

octovis/package.xml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
1-
<package format="2">
1+
<package format="3">
22
<name>octovis</name>
3-
<version>1.9.6</version>
3+
<version>1.9.7</version>
44
<description>octovis is visualization tool for the OctoMap library based on Qt and libQGLViewer. See
55
http://octomap.github.io for details.</description>
66

77
<author email="[email protected]">Kai M. Wurm</author>
88
<author email="[email protected]">Armin Hornung</author>
99
<maintainer email="[email protected]">Armin Hornung</maintainer>
10-
<maintainer email="w.merkt+oss@gmail.com">Wolfgang Merkt</maintainer>
10+
<maintainer email="opensource@wolfgangmerkt.com">Wolfgang Merkt</maintainer>
1111
<license>GPLv2</license>
1212

1313
<url type="website">http://octomap.github.io</url>
1414
<url type="bugtracker">https://github.com/OctoMap/octomap/issues</url>
1515

16+
<!-- The following tags are recommended by REP-136 -->
17+
<exec_depend condition="$ROS_VERSION == 1">catkin</exec_depend>
18+
<exec_depend condition="$ROS_VERSION == 2">ament_cmake</exec_depend>
19+
1620
<buildtool_depend>cmake</buildtool_depend>
17-
1821
<export>
1922
<build_type>cmake</build_type>
2023
</export>

0 commit comments

Comments
 (0)