mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
Patch for issue #382
This commit is contained in:
@@ -418,11 +418,16 @@ IF(costmap_2d_FOUND)
|
|||||||
include_directories(${costmap_2d_INCLUDE_DIRS})
|
include_directories(${costmap_2d_INCLUDE_DIRS})
|
||||||
add_library(rtabmap_costmap_plugins
|
add_library(rtabmap_costmap_plugins
|
||||||
src/costmap_2d/static_layer.cpp
|
src/costmap_2d/static_layer.cpp
|
||||||
|
)
|
||||||
|
add_library(rtabmap_costmap_plugins2
|
||||||
src/costmap_2d/voxel_layer.cpp
|
src/costmap_2d/voxel_layer.cpp
|
||||||
)
|
)
|
||||||
target_link_libraries(rtabmap_costmap_plugins
|
target_link_libraries(rtabmap_costmap_plugins
|
||||||
${costmap_2d_LIBRARIES}
|
${costmap_2d_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
target_link_libraries(rtabmap_costmap_plugins2
|
||||||
|
${costmap_2d_LIBRARIES}
|
||||||
|
)
|
||||||
ENDIF(costmap_2d_FOUND)
|
ENDIF(costmap_2d_FOUND)
|
||||||
|
|
||||||
#############
|
#############
|
||||||
@@ -518,6 +523,7 @@ ENDIF(rviz_FOUND)
|
|||||||
IF(costmap_2d_FOUND)
|
IF(costmap_2d_FOUND)
|
||||||
install(TARGETS
|
install(TARGETS
|
||||||
rtabmap_costmap_plugins
|
rtabmap_costmap_plugins
|
||||||
|
rtabmap_costmap_plugins2
|
||||||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
||||||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
||||||
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
<class type="rtabmap_ros::StaticLayer" base_class_type="costmap_2d::Layer">
|
<class type="rtabmap_ros::StaticLayer" base_class_type="costmap_2d::Layer">
|
||||||
<description>Listens to OccupancyGrid messages and copies them in, like from map_server.</description>
|
<description>Listens to OccupancyGrid messages and copies them in, like from map_server.</description>
|
||||||
</class>
|
</class>
|
||||||
|
</library>
|
||||||
|
<library path="lib/librtabmap_costmap_plugins2">
|
||||||
<class type="rtabmap_ros::VoxelLayer" base_class_type="costmap_2d::Layer">
|
<class type="rtabmap_ros::VoxelLayer" base_class_type="costmap_2d::Layer">
|
||||||
<description>Similar to obstacle costmap, but uses 3D voxel grid to store data.</description>
|
<description>Similar to obstacle costmap, but uses 3D voxel grid to store data.</description>
|
||||||
</class>
|
</class>
|
||||||
|
|||||||
Reference in New Issue
Block a user