Skip to content

Commit

Permalink
Merge branch 'devel' for v1.9.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ahornung committed May 3, 2021
2 parents c4a4304 + b5cd2a2 commit aa6372b
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 25 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/industrial_ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ jobs:
env:
- {ROS_DISTRO: melodic}
- {ROS_DISTRO: noetic}
- {ROS_DISTRO: foxy}
- {ROS_DISTRO: rolling}
- {ROS_DISTRO: foxy, PRERELEASE: true}
- {ROS_DISTRO: rolling, PRERELEASE: true}
env:
CCACHE_DIR: /github/home/.ccache # Enable ccache
PRERELEASE: true # always run the prerelease tests
BUILDER: colcon
# CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=Debug'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
6 changes: 5 additions & 1 deletion dynamicEDT3D/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(GNUInstallDirs)
# version (e.g. for packaging)
set(DYNAMICEDT3D_MAJOR_VERSION 1)
set(DYNAMICEDT3D_MINOR_VERSION 9)
set(DYNAMICEDT3D_PATCH_VERSION 6)
set(DYNAMICEDT3D_PATCH_VERSION 7)
set(DYNAMICEDT3D_VERSION ${DYNAMICEDT3D_MAJOR_VERSION}.${DYNAMICEDT3D_MINOR_VERSION}.${DYNAMICEDT3D_PATCH_VERSION})
set(DYNAMICEDT3D_SOVERSION ${DYNAMICEDT3D_MAJOR_VERSION}.${DYNAMICEDT3D_MINOR_VERSION})

Expand Down Expand Up @@ -69,6 +69,10 @@ install(FILES ${dynamicEDT3D_HDRS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/dyna
# 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")
install(FILES package.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/dynamic_edt_3d")

# Allows Colcon to find non-Ament packages when using workspace underlays
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)

#TODO: this conflicts with the octomap uninstall
#it is not only a target name problem, also both will use the same manifest file
#in the same binary directory
Expand Down
12 changes: 8 additions & 4 deletions dynamicEDT3D/package.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
<package format="2">
<package format="3">
<name>dynamic_edt_3d</name>
<version>1.9.6</version>
<version>1.9.7</version>
<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>

<author email="[email protected]">Christoph Sprunk</author>
<maintainer email="[email protected]">Christoph Sprunk</maintainer>
<maintainer email="w.merkt+oss@gmail.com">Wolfgang Merkt</maintainer>
<maintainer email="opensource@wolfgangmerkt.com">Wolfgang Merkt</maintainer>
<license>BSD</license>

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

<depend>octomap</depend>
<buildtool_depend>cmake</buildtool_depend>

<!-- The following tags are recommended by REP-136 -->
<exec_depend condition="$ROS_VERSION == 1">catkin</exec_depend>
<exec_depend condition="$ROS_VERSION == 2">ament_cmake</exec_depend>

<buildtool_depend>cmake</buildtool_depend>
<export>
<build_type>cmake</build_type>
</export>
Expand Down
5 changes: 5 additions & 0 deletions octomap/CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.9.7: 2021-05-03
==================
- Use explicit casting to prevent implicit sign conversion
- REP-136 compliance and compatibility with ROS1 & ROS2 using single branch

v1.9.6: 2021-01-23
==================
- Fixed ifstream >> byte with c++17
Expand Down
8 changes: 6 additions & 2 deletions octomap/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(GNUInstallDirs)
# version (e.g. for packaging)
set(OCTOMAP_MAJOR_VERSION 1)
set(OCTOMAP_MINOR_VERSION 9)
set(OCTOMAP_PATCH_VERSION 6)
set(OCTOMAP_PATCH_VERSION 7)
set(OCTOMAP_VERSION ${OCTOMAP_MAJOR_VERSION}.${OCTOMAP_MINOR_VERSION}.${OCTOMAP_PATCH_VERSION})
set(OCTOMAP_SOVERSION ${OCTOMAP_MAJOR_VERSION}.${OCTOMAP_MINOR_VERSION})
if(COMMAND cmake_policy)
Expand Down Expand Up @@ -69,9 +69,13 @@ install(FILES ${octomap_HDRS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/octomap")
file(GLOB octomap_math_HDRS ${PROJECT_SOURCE_DIR}/include/octomap/math/*.h)
install(FILES ${octomap_math_HDRS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/octomap/math")

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

# Allows Colcon to find non-Ament packages when using workspace underlays
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)

# uninstall target
configure_file(
"${PROJECT_SOURCE_DIR}/CMakeModules/CMakeUninstall.cmake.in"
Expand Down
2 changes: 1 addition & 1 deletion octomap/include/octomap/OcTreeBaseImpl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ namespace octomap {
float step_size = this->resolution * pow(2, tree_depth-depth);
for (int i=0;i<3;++i) {
diff[i] = pmax_clamped(i) - pmin_clamped(i);
steps[i] = floor(diff[i] / step_size);
steps[i] = static_cast<unsigned int>(floor(diff[i] / step_size));
// std::cout << "bbx " << i << " size: " << diff[i] << " " << steps[i] << " steps\n";
}

Expand Down
8 changes: 4 additions & 4 deletions octomap/include/octomap/OccupancyOcTreeBase.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ namespace octomap {
// Line dot normal will be zero if they are parallel, in which case no intersection can be the entry one
// if there is an intersection does it occur in the bounded plane of the voxel
// if yes keep only the closest (smallest distance to sensor origin).
if((lineDotNormal = normalX.dot(direction))){ // Ensure lineDotNormal is non-zero (assign and test)
if((lineDotNormal = normalX.dot(direction)) != 0.0){ // Ensure lineDotNormal is non-zero (assign and test)
d = (pointXNeg - origin).dot(normalX) / lineDotNormal;
intersect = direction * float(d) + origin;
if(!(intersect(1) < (pointYNeg(1) - 1e-6) || intersect(1) > (pointYPos(1) + 1e-6) ||
Expand All @@ -802,7 +802,7 @@ namespace octomap {
}
}

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

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

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

Expand Down
11 changes: 7 additions & 4 deletions octomap/package.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
<package format="2">
<package format="3">
<name>octomap</name>
<version>1.9.6</version>
<version>1.9.7</version>
<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
http://octomap.github.io for details.</description>

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

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

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

<buildtool_depend>cmake</buildtool_depend>
<export>
<build_type>cmake</build_type>
</export>
Expand Down
6 changes: 5 additions & 1 deletion octovis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(GNUInstallDirs)
# # version (e.g. for packaging)
set(OCTOVIS_MAJOR_VERSION 1)
set(OCTOVIS_MINOR_VERSION 9)
set(OCTOVIS_PATCH_VERSION 6)
set(OCTOVIS_PATCH_VERSION 7)
set(OCTOVIS_VERSION ${OCTOVIS_MAJOR_VERSION}.${OCTOVIS_MINOR_VERSION}.${OCTOVIS_PATCH_VERSION})
set(OCTOVIS_SOVERSION ${OCTOVIS_MAJOR_VERSION}.${OCTOVIS_MINOR_VERSION})
# get rid of a useless warning:
Expand Down Expand Up @@ -158,6 +158,10 @@ IF(BUILD_VIEWER)

# Install catkin package.xml
install(FILES package.xml DESTINATION "${CMAKE_INSTALL_DATADIR}/octovis")

# Allows Colcon to find non-Ament packages when using workspace underlays
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)

ELSE()
MESSAGE ( "Unfortunately, the viewer (octovis) can not be built because some requirements are missing.")
Expand Down
11 changes: 7 additions & 4 deletions octovis/package.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
<package format="2">
<package format="3">
<name>octovis</name>
<version>1.9.6</version>
<version>1.9.7</version>
<description>octovis is visualization tool for the OctoMap library based on Qt and libQGLViewer. See
http://octomap.github.io for details.</description>

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

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

<!-- The following tags are recommended by REP-136 -->
<exec_depend condition="$ROS_VERSION == 1">catkin</exec_depend>
<exec_depend condition="$ROS_VERSION == 2">ament_cmake</exec_depend>

<buildtool_depend>cmake</buildtool_depend>

<export>
<build_type>cmake</build_type>
</export>
Expand Down

0 comments on commit aa6372b

Please sign in to comment.