fixed missing grid_map_core definitions on rtabmap_slam side

This commit is contained in:
matlabbe
2024-01-03 18:06:01 -08:00
parent eed4180f97
commit c70f9f1b14
3 changed files with 9 additions and 2 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ find_package(catkin REQUIRED COMPONENTS
image_geometry rtabmap_msgs
)
find_package(RTABMap 0.21.23 REQUIRED)
find_package(RTABMap 0.21.3 REQUIRED)
catkin_package(
INCLUDE_DIRS include
+6
View File
@@ -60,6 +60,12 @@ MESSAGE(STATUS "WITH octomap_msgs")
ADD_DEFINITIONS("-DWITH_OCTOMAP_MSGS")
ENDIF(octomap_msgs_FOUND)
# If grid_map_core is found, add definition
IF(grid_map_core_FOUND)
MESSAGE(STATUS "WITH grid_map_core")
ADD_DEFINITIONS("-DWITH_GRID_MAP_CORE")
ENDIF(grid_map_core_FOUND)
# If apriltag_ros is found, add definition
IF(apriltag_ros_FOUND)
MESSAGE(STATUS "WITH apriltag_ros")
+2 -1
View File
@@ -427,7 +427,8 @@ bool MapsManager::hasSubscribers() const
octoMapObstacleCloud_.getNumSubscribers() != 0 ||
octoMapGroundCloud_.getNumSubscribers() != 0 ||
octoMapEmptySpace_.getNumSubscribers() != 0 ||
octoMapProj_.getNumSubscribers() != 0;
octoMapProj_.getNumSubscribers() != 0 ||
elevationMapPub_.getNumSubscribers() != 0;
}
bool MapsManager::isMapUpdated() const