2013-12-11 00:12:44 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.3)
|
2014-11-25 17:13:15 -05:00
|
|
|
project(rtabmap_ros)
|
2011-06-20 16:49:22 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
## Find catkin macros and libraries
|
|
|
|
|
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
|
|
|
|
## is used, also find other catkin packages
|
|
|
|
|
find_package(catkin REQUIRED COMPONENTS
|
2015-03-06 16:17:09 -05:00
|
|
|
cv_bridge roscpp rospy sensor_msgs std_msgs std_srvs nav_msgs geometry_msgs visualization_msgs
|
2015-05-14 00:42:21 -04:00
|
|
|
image_transport tf tf_conversions tf2_ros eigen_conversions laser_geometry pcl_conversions
|
2016-04-27 15:12:36 -04:00
|
|
|
pcl_ros nodelet dynamic_reconfigure message_filters class_loader
|
2016-08-26 16:38:37 +08:00
|
|
|
genmsg stereo_msgs move_base_msgs image_geometry
|
2013-12-11 00:12:44 +00:00
|
|
|
)
|
2011-06-20 16:49:22 +00:00
|
|
|
|
2015-05-01 13:41:08 -04:00
|
|
|
# Optional components
|
|
|
|
|
find_package(costmap_2d)
|
|
|
|
|
find_package(octomap_ros)
|
2016-04-27 15:12:36 -04:00
|
|
|
find_package(rviz)
|
2015-05-01 13:41:08 -04:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
## System dependencies are found with CMake's conventions
|
|
|
|
|
# find_package(Boost REQUIRED COMPONENTS system)
|
2017-08-03 16:44:08 -04:00
|
|
|
find_package(RTABMap 0.13.2 REQUIRED)
|
2011-06-20 16:49:22 +00:00
|
|
|
|
2015-06-17 22:52:35 -04:00
|
|
|
find_package(OpenCV REQUIRED)
|
|
|
|
|
|
2014-07-04 23:12:34 +00:00
|
|
|
#Qt stuff
|
2016-05-09 11:19:07 -04:00
|
|
|
# If librtabmap_gui.so is found, rtabmapviz will be built
|
|
|
|
|
# If rviz is found, plugins will be built
|
|
|
|
|
IF(RTABMAP_GUI OR rviz_FOUND)
|
|
|
|
|
IF(RTABMAP_QT_VERSION EQUAL 4)
|
|
|
|
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
|
|
|
|
|
INCLUDE(${QT_USE_FILE})
|
|
|
|
|
ELSE()
|
|
|
|
|
IF(RTABMAP_GUI)
|
|
|
|
|
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui REQUIRED)
|
|
|
|
|
ELSE()
|
|
|
|
|
# For rviz plugins, look for Qt5 before Qt4
|
|
|
|
|
FIND_PACKAGE(Qt5 COMPONENTS Widgets Core Gui QUIET)
|
|
|
|
|
IF(NOT Qt5_FOUND)
|
|
|
|
|
FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
|
|
|
|
|
INCLUDE(${QT_USE_FILE})
|
|
|
|
|
ENDIF(NOT Qt5_FOUND)
|
|
|
|
|
ENDIF()
|
|
|
|
|
ENDIF()
|
|
|
|
|
ENDIF(RTABMAP_GUI OR rviz_FOUND)
|
2014-07-04 23:12:34 +00:00
|
|
|
|
|
|
|
|
## We also use Ogre
|
|
|
|
|
include($ENV{ROS_ROOT}/core/rosbuild/FindPkgConfig.cmake)
|
|
|
|
|
pkg_check_modules(OGRE OGRE)
|
|
|
|
|
include_directories( ${OGRE_INCLUDE_DIRS} )
|
|
|
|
|
link_directories( ${OGRE_LIBRARY_DIRS} )
|
|
|
|
|
|
2015-08-13 15:36:22 -04:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
## Uncomment this if the package has a setup.py. This macro ensures
|
|
|
|
|
## modules and global scripts declared therein get installed
|
|
|
|
|
## See http://ros.org/doc/api/catkin/html/user_guide/setup_dot_py.html
|
|
|
|
|
# catkin_python_setup()
|
2011-06-20 16:49:22 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
#######################################
|
|
|
|
|
## Declare ROS messages and services ##
|
|
|
|
|
#######################################
|
2011-06-20 16:49:22 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
## Generate messages in the 'msg' folder
|
|
|
|
|
add_message_files(
|
|
|
|
|
FILES
|
|
|
|
|
Info.msg
|
|
|
|
|
KeyPoint.msg
|
|
|
|
|
MapData.msg
|
2015-09-15 16:40:07 -04:00
|
|
|
MapGraph.msg
|
2014-10-26 21:49:30 +00:00
|
|
|
NodeData.msg
|
2014-12-14 16:44:13 -05:00
|
|
|
Link.msg
|
|
|
|
|
OdomInfo.msg
|
2015-04-24 10:35:50 -04:00
|
|
|
Point2f.msg
|
2016-03-09 17:31:57 -05:00
|
|
|
Point3f.msg
|
2015-09-21 16:37:35 -04:00
|
|
|
Goal.msg
|
2016-09-26 16:37:31 -04:00
|
|
|
RGBDImage.msg
|
|
|
|
|
UserData.msg
|
2013-12-11 00:12:44 +00:00
|
|
|
)
|
2011-06-20 16:49:22 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
## Generate services in the 'srv' folder
|
2014-07-06 19:58:15 +00:00
|
|
|
add_service_files(
|
|
|
|
|
FILES
|
|
|
|
|
GetMap.srv
|
2015-03-06 16:17:09 -05:00
|
|
|
ListLabels.srv
|
2014-09-22 18:04:29 +00:00
|
|
|
PublishMap.srv
|
2014-10-28 01:23:52 +00:00
|
|
|
ResetPose.srv
|
2015-02-06 13:56:20 -05:00
|
|
|
SetGoal.srv
|
2015-02-27 15:26:30 -05:00
|
|
|
SetLabel.srv
|
2014-07-06 19:58:15 +00:00
|
|
|
)
|
2011-06-20 16:49:22 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
## Generate added messages and services with any dependencies listed here
|
|
|
|
|
generate_messages(
|
|
|
|
|
DEPENDENCIES
|
|
|
|
|
std_msgs
|
|
|
|
|
geometry_msgs
|
2014-10-30 14:48:31 +00:00
|
|
|
sensor_msgs
|
2013-12-11 00:12:44 +00:00
|
|
|
)
|
2012-06-24 17:19:34 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
#add dynamic reconfigure api
|
|
|
|
|
generate_dynamic_reconfigure_options(cfg/Camera.cfg)
|
2012-06-24 17:19:34 +00:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
###################################
|
|
|
|
|
## catkin specific configuration ##
|
|
|
|
|
###################################
|
|
|
|
|
## The catkin_package macro generates cmake config files for your package
|
|
|
|
|
## Declare things to be passed to dependent projects
|
|
|
|
|
## INCLUDE_DIRS: uncomment this if you package contains header files
|
|
|
|
|
## LIBRARIES: libraries you create in this project that dependent projects also need
|
|
|
|
|
## CATKIN_DEPENDS: catkin_packages dependent projects also need
|
|
|
|
|
## DEPENDS: system dependencies of this project that dependent projects also need
|
2016-05-16 15:58:15 -04:00
|
|
|
|
|
|
|
|
SET(optional_dependencies "")
|
|
|
|
|
IF(costmap_2d_FOUND)
|
|
|
|
|
SET(optional_dependencies ${optional_dependencies} costmap_2d)
|
|
|
|
|
ENDIF(costmap_2d_FOUND)
|
|
|
|
|
IF(octomap_ros_FOUND)
|
|
|
|
|
SET(optional_dependencies ${optional_dependencies} octomap_ros)
|
|
|
|
|
ENDIF(octomap_ros_FOUND)
|
|
|
|
|
IF(rviz_FOUND)
|
|
|
|
|
SET(optional_dependencies ${optional_dependencies} rviz)
|
|
|
|
|
ENDIF(rviz_FOUND)
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
catkin_package(
|
|
|
|
|
INCLUDE_DIRS include
|
|
|
|
|
LIBRARIES rtabmap_ros
|
2015-03-06 16:17:09 -05:00
|
|
|
CATKIN_DEPENDS cv_bridge roscpp rospy sensor_msgs std_msgs std_srvs nav_msgs geometry_msgs visualization_msgs
|
2015-05-14 00:42:21 -04:00
|
|
|
image_transport tf tf_conversions tf2_ros eigen_conversions laser_geometry pcl_conversions
|
2016-04-27 15:12:36 -04:00
|
|
|
pcl_ros nodelet dynamic_reconfigure message_filters class_loader
|
2016-08-26 16:38:37 +08:00
|
|
|
stereo_msgs move_base_msgs image_geometry ${optional_dependencies}
|
2015-11-18 15:18:45 -05:00
|
|
|
DEPENDS RTABMap OpenCV
|
2013-12-11 00:12:44 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
###########
|
|
|
|
|
## Build ##
|
|
|
|
|
###########
|
|
|
|
|
|
|
|
|
|
## Specify additional locations of header files
|
|
|
|
|
## Your package locations should be listed before other locations
|
|
|
|
|
# include_directories(include)
|
|
|
|
|
include_directories(
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
|
|
|
${RTABMap_INCLUDE_DIRS}
|
2015-06-17 22:52:35 -04:00
|
|
|
${OpenCV_INCLUDE_DIRS}
|
2013-12-11 00:12:44 +00:00
|
|
|
${catkin_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
|
2014-06-04 15:38:41 +00:00
|
|
|
# libraries
|
|
|
|
|
SET(Libraries
|
2015-06-17 22:52:35 -04:00
|
|
|
${OpenCV_LIBRARIES}
|
2014-06-04 15:38:41 +00:00
|
|
|
${catkin_LIBRARIES}
|
|
|
|
|
${RTABMap_LIBRARIES}
|
|
|
|
|
)
|
2016-04-27 15:12:36 -04:00
|
|
|
|
2015-05-01 13:41:08 -04:00
|
|
|
SET(rtabmap_ros_lib_src
|
2016-07-06 20:08:23 -04:00
|
|
|
src/nodelets/rgbd_odometry.cpp
|
|
|
|
|
src/nodelets/stereo_odometry.cpp
|
2016-08-07 20:55:59 -04:00
|
|
|
src/nodelets/rgbdicp_odometry.cpp
|
|
|
|
|
src/nodelets/icp_odometry.cpp
|
2013-12-11 00:12:44 +00:00
|
|
|
src/nodelets/data_throttle.cpp
|
2014-10-17 17:52:37 +00:00
|
|
|
src/nodelets/stereo_throttle.cpp
|
2013-12-11 00:12:44 +00:00
|
|
|
src/nodelets/data_odom_sync.cpp
|
|
|
|
|
src/nodelets/point_cloud_xyzrgb.cpp
|
2014-10-22 19:32:27 +00:00
|
|
|
src/nodelets/point_cloud_xyz.cpp
|
2014-08-18 23:16:16 +00:00
|
|
|
src/nodelets/disparity_to_depth.cpp
|
2017-04-11 11:58:34 -04:00
|
|
|
src/nodelets/pointcloud_to_depthimage.cpp
|
2014-10-24 19:32:19 +00:00
|
|
|
src/nodelets/obstacles_detection.cpp
|
2016-08-30 18:36:06 -04:00
|
|
|
src/nodelets/obstacles_detection_old.cpp
|
2015-06-12 17:42:25 -07:00
|
|
|
src/nodelets/point_cloud_aggregator.cpp
|
2016-10-05 13:55:52 -04:00
|
|
|
src/nodelets/undistort_depth.cpp
|
2016-09-26 16:37:31 -04:00
|
|
|
src/nodelets/rgbd_sync.cpp
|
2016-07-27 16:44:48 -07:00
|
|
|
src/OdometryROS.cpp
|
2013-12-11 00:12:44 +00:00
|
|
|
src/MsgConversion.cpp
|
2015-10-31 15:20:57 -04:00
|
|
|
src/MapsManager.cpp
|
2016-09-26 16:37:31 -04:00
|
|
|
src/CommonDataSubscriber.cpp
|
2016-09-30 16:21:06 -04:00
|
|
|
src/CoreWrapper.cpp
|
2016-09-26 16:37:31 -04:00
|
|
|
src/impl/CommonDataSubscriberDepth.cpp
|
|
|
|
|
src/impl/CommonDataSubscriberStereo.cpp
|
|
|
|
|
src/impl/CommonDataSubscriberRGBD.cpp
|
|
|
|
|
src/impl/CommonDataSubscriberRGBD2.cpp
|
2017-05-17 17:40:48 -04:00
|
|
|
src/impl/CommonDataSubscriberRGBD3.cpp
|
|
|
|
|
src/impl/CommonDataSubscriberRGBD4.cpp
|
2015-05-01 13:41:08 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# If costmap_2d is found, add the plugin
|
|
|
|
|
IF(costmap_2d_FOUND)
|
|
|
|
|
MESSAGE(STATUS "WITH costmap_2d")
|
|
|
|
|
include_directories(${costmap_2d_INCLUDE_DIRS})
|
|
|
|
|
SET(Libraries
|
|
|
|
|
${costmap_2d_LIBRARIES}
|
|
|
|
|
${Libraries}
|
|
|
|
|
)
|
|
|
|
|
SET(rtabmap_ros_lib_src
|
|
|
|
|
src/costmap_2d/static_layer.cpp
|
|
|
|
|
${rtabmap_ros_lib_src}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(costmap_2d_FOUND)
|
|
|
|
|
|
2016-06-28 19:02:01 -04:00
|
|
|
# If octomap is found, add definition
|
|
|
|
|
IF(octomap_ros_FOUND)
|
|
|
|
|
MESSAGE(STATUS "WITH octomap")
|
|
|
|
|
include_directories(
|
|
|
|
|
${octomap_ros_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
SET(Libraries
|
|
|
|
|
${octomap_ros_LIBRARIES}
|
|
|
|
|
${Libraries}
|
|
|
|
|
)
|
|
|
|
|
ADD_DEFINITIONS("-DWITH_OCTOMAP_ROS")
|
|
|
|
|
ENDIF(octomap_ros_FOUND)
|
|
|
|
|
|
2016-05-04 17:07:40 -04:00
|
|
|
IF(QT4_FOUND OR Qt5_FOUND)
|
|
|
|
|
SET(Libraries
|
|
|
|
|
${Libraries}
|
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(QT4_FOUND OR Qt5_FOUND)
|
|
|
|
|
|
2016-04-27 15:12:36 -04:00
|
|
|
# If rviz is found, add plugins
|
|
|
|
|
IF(rviz_FOUND)
|
|
|
|
|
MESSAGE(STATUS "WITH rviz")
|
|
|
|
|
include_directories(
|
|
|
|
|
${rviz_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
SET(Libraries
|
|
|
|
|
${Libraries}
|
|
|
|
|
${rviz_LIBRARIES}
|
|
|
|
|
${rviz_DEFAULT_PLUGIN_LIBRARIES}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
## RVIZ plugin
|
2016-05-04 17:07:40 -04:00
|
|
|
IF(QT4_FOUND)
|
2016-04-27 15:12:36 -04:00
|
|
|
qt4_wrap_cpp(MOC_FILES
|
|
|
|
|
src/rviz/MapCloudDisplay.h
|
|
|
|
|
src/rviz/MapGraphDisplay.h
|
|
|
|
|
src/rviz/InfoDisplay.h
|
|
|
|
|
src/rviz/OrbitOrientedViewController.h
|
|
|
|
|
)
|
2016-05-04 17:07:40 -04:00
|
|
|
ELSE()
|
|
|
|
|
qt5_wrap_cpp(MOC_FILES
|
|
|
|
|
src/rviz/MapCloudDisplay.h
|
|
|
|
|
src/rviz/MapGraphDisplay.h
|
|
|
|
|
src/rviz/InfoDisplay.h
|
|
|
|
|
src/rviz/OrbitOrientedViewController.h
|
|
|
|
|
)
|
|
|
|
|
ENDIF()
|
2016-04-27 15:12:36 -04:00
|
|
|
|
|
|
|
|
# tf:message_filters, mixing boost and Qt signals
|
|
|
|
|
set_property(
|
|
|
|
|
SOURCE src/rviz/MapCloudDisplay.cpp src/rviz/MapGraphDisplay.cpp src/rviz/InfoDisplay.cpp src/rviz/OrbitOrientedViewController.cpp
|
|
|
|
|
PROPERTY COMPILE_DEFINITIONS QT_NO_KEYWORDS
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
SET(rtabmap_ros_lib_src
|
|
|
|
|
${rtabmap_ros_lib_src}
|
|
|
|
|
src/rviz/MapCloudDisplay.cpp
|
|
|
|
|
src/rviz/MapGraphDisplay.cpp
|
|
|
|
|
src/rviz/InfoDisplay.cpp
|
|
|
|
|
src/rviz/OrbitOrientedViewController.cpp
|
|
|
|
|
${MOC_FILES}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(rviz_FOUND)
|
|
|
|
|
|
|
|
|
|
############################
|
2015-05-01 13:41:08 -04:00
|
|
|
## Declare a cpp library
|
2016-04-27 15:12:36 -04:00
|
|
|
############################
|
2015-05-01 13:41:08 -04:00
|
|
|
add_library(rtabmap_ros
|
|
|
|
|
${rtabmap_ros_lib_src}
|
2013-12-11 00:12:44 +00:00
|
|
|
)
|
2016-05-04 17:07:40 -04:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
target_link_libraries(rtabmap_ros
|
2014-06-04 15:38:41 +00:00
|
|
|
${Libraries}
|
2014-07-04 23:12:34 +00:00
|
|
|
${OGRE_LIBRARIES}
|
2013-12-11 00:12:44 +00:00
|
|
|
)
|
2016-05-04 17:07:40 -04:00
|
|
|
IF(Qt5_FOUND)
|
|
|
|
|
QT5_USE_MODULES(rtabmap_ros Widgets Core Gui)
|
2016-05-04 17:09:55 -04:00
|
|
|
ENDIF(Qt5_FOUND)
|
2015-09-13 18:31:41 -04:00
|
|
|
add_dependencies(rtabmap_ros ${${PROJECT_NAME}_EXPORTED_TARGETS})
|
2013-12-11 00:12:44 +00:00
|
|
|
|
2016-09-30 16:21:06 -04:00
|
|
|
add_executable(rtabmap src/CoreNode.cpp)
|
|
|
|
|
target_link_libraries(rtabmap ${Libraries})
|
2013-12-11 00:12:44 +00:00
|
|
|
|
2014-10-13 19:14:30 +00:00
|
|
|
add_executable(rgbd_odometry src/RGBDOdometryNode.cpp)
|
2016-07-06 20:08:23 -04:00
|
|
|
target_link_libraries(rgbd_odometry ${Libraries})
|
2014-10-13 19:14:30 +00:00
|
|
|
|
2014-10-06 19:43:39 +00:00
|
|
|
add_executable(stereo_odometry src/StereoOdometryNode.cpp)
|
2016-07-06 20:08:23 -04:00
|
|
|
target_link_libraries(stereo_odometry ${Libraries})
|
2014-10-06 19:43:39 +00:00
|
|
|
|
2016-08-07 20:55:59 -04:00
|
|
|
add_executable(rgbdicp_odometry src/RGBDICPOdometryNode.cpp)
|
|
|
|
|
target_link_libraries(rgbdicp_odometry ${Libraries})
|
|
|
|
|
|
|
|
|
|
add_executable(icp_odometry src/ICPOdometryNode.cpp)
|
|
|
|
|
target_link_libraries(icp_odometry ${Libraries})
|
|
|
|
|
|
2014-10-18 00:00:42 +00:00
|
|
|
add_executable(map_optimizer src/MapOptimizerNode.cpp)
|
|
|
|
|
target_link_libraries(map_optimizer rtabmap_ros ${Libraries})
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
add_executable(map_assembler src/MapAssemblerNode.cpp)
|
2014-06-04 15:38:41 +00:00
|
|
|
target_link_libraries(map_assembler rtabmap_ros ${Libraries})
|
2013-12-11 00:12:44 +00:00
|
|
|
|
2017-02-22 14:43:16 -05:00
|
|
|
add_executable(wifi_signal_pub src/WifiSignalPubNode.cpp)
|
|
|
|
|
target_link_libraries(wifi_signal_pub rtabmap_ros ${Libraries})
|
|
|
|
|
add_executable(wifi_signal_sub src/WifiSignalSubNode.cpp)
|
|
|
|
|
target_link_libraries(wifi_signal_sub rtabmap_ros ${Libraries})
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
add_executable(camera src/CameraNode.cpp)
|
|
|
|
|
add_dependencies(camera ${${PROJECT_NAME}_EXPORTED_TARGETS})
|
2014-06-04 15:38:41 +00:00
|
|
|
target_link_libraries(camera ${Libraries})
|
2016-06-17 17:03:47 -04:00
|
|
|
|
|
|
|
|
add_executable(stereo_camera src/StereoCameraNode.cpp)
|
|
|
|
|
target_link_libraries(stereo_camera rtabmap_ros ${Libraries})
|
2013-12-11 00:12:44 +00:00
|
|
|
|
2015-08-13 15:36:22 -04:00
|
|
|
IF(RTABMAP_GUI)
|
|
|
|
|
add_executable(rtabmapviz src/GuiNode.cpp src/GuiWrapper.cpp src/PreferencesDialogROS.cpp)
|
|
|
|
|
target_link_libraries(rtabmapviz rtabmap_ros ${QT_LIBRARIES} ${Libraries})
|
2016-05-04 17:07:40 -04:00
|
|
|
IF(Qt5_FOUND)
|
|
|
|
|
QT5_USE_MODULES(rtabmapviz Widgets Core Gui)
|
|
|
|
|
ENDIF()
|
2015-08-13 15:36:22 -04:00
|
|
|
ELSE()
|
|
|
|
|
MESSAGE(WARNING "Found RTAB-Map built without its GUI library. Node rtabmapviz will not be built!")
|
|
|
|
|
ENDIF()
|
2013-12-11 00:12:44 +00:00
|
|
|
|
2014-11-02 01:04:49 +00:00
|
|
|
add_executable(data_player src/DbPlayerNode.cpp)
|
|
|
|
|
target_link_libraries(data_player rtabmap_ros ${QT_LIBRARIES} ${Libraries})
|
|
|
|
|
|
2014-12-03 22:35:43 -05:00
|
|
|
add_executable(odom_msg_to_tf src/OdomMsgToTFNode.cpp)
|
|
|
|
|
target_link_libraries(odom_msg_to_tf rtabmap_ros ${Libraries})
|
|
|
|
|
|
2017-02-23 00:18:08 -05:00
|
|
|
add_executable(pointcloud_to_depthimage src/PointCloudToDepthImageNode.cpp)
|
|
|
|
|
target_link_libraries(pointcloud_to_depthimage rtabmap_ros ${Libraries})
|
|
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
#############
|
|
|
|
|
## Install ##
|
|
|
|
|
#############
|
|
|
|
|
|
|
|
|
|
# all install targets should use catkin DESTINATION variables
|
|
|
|
|
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
|
|
|
|
|
|
|
|
|
|
## Mark executable scripts (Python etc.) for installation
|
|
|
|
|
## in contrast to setup.py, you can choose the destination
|
|
|
|
|
# install(PROGRAMS
|
|
|
|
|
# scripts/my_python_script
|
|
|
|
|
# DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
|
|
|
# )
|
|
|
|
|
|
|
|
|
|
## Mark executables and/or libraries for installation
|
2015-08-13 15:36:22 -04:00
|
|
|
IF(RTABMAP_GUI)
|
2014-12-02 16:24:26 -05:00
|
|
|
install(TARGETS
|
|
|
|
|
rtabmap_ros
|
|
|
|
|
rtabmap
|
|
|
|
|
rtabmapviz
|
|
|
|
|
rgbd_odometry
|
2016-09-26 16:37:31 -04:00
|
|
|
rgbdicp_odometry
|
2014-12-02 16:24:26 -05:00
|
|
|
stereo_odometry
|
|
|
|
|
map_assembler
|
|
|
|
|
map_optimizer
|
|
|
|
|
data_player
|
|
|
|
|
camera
|
|
|
|
|
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
|
|
|
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
|
|
|
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
|
|
|
)
|
2015-08-13 15:36:22 -04:00
|
|
|
ELSE() # without rtabmapviz
|
|
|
|
|
install(TARGETS
|
|
|
|
|
rtabmap_ros
|
|
|
|
|
rtabmap
|
|
|
|
|
rgbd_odometry
|
2016-09-26 16:37:31 -04:00
|
|
|
rgbdicp_odometry
|
2015-08-13 15:36:22 -04:00
|
|
|
stereo_odometry
|
|
|
|
|
map_assembler
|
|
|
|
|
map_optimizer
|
|
|
|
|
data_player
|
|
|
|
|
camera
|
|
|
|
|
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
|
|
|
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
|
|
|
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
|
|
|
)
|
|
|
|
|
ENDIF()
|
2013-12-11 00:12:44 +00:00
|
|
|
|
|
|
|
|
## Mark cpp header files for installation
|
2014-12-02 16:24:26 -05:00
|
|
|
install(DIRECTORY include/${PROJECT_NAME}/
|
|
|
|
|
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
|
|
|
|
|
FILES_MATCHING PATTERN "*.h"
|
|
|
|
|
PATTERN ".svn" EXCLUDE
|
|
|
|
|
)
|
2013-12-11 00:12:44 +00:00
|
|
|
|
|
|
|
|
## Mark other files for installation (e.g. launch and bag files, etc.)
|
2014-12-02 16:24:26 -05:00
|
|
|
install(FILES
|
2015-10-28 20:07:18 -04:00
|
|
|
launch/rtabmap.launch
|
2014-12-02 16:24:26 -05:00
|
|
|
launch/rgbd_mapping.launch
|
2015-07-20 16:20:11 -04:00
|
|
|
launch/stereo_mapping.launch
|
2014-12-02 16:24:26 -05:00
|
|
|
launch/data_recorder.launch
|
2015-03-31 18:59:56 -04:00
|
|
|
launch/rgbd_mapping_kinect2.launch
|
2014-12-02 16:24:26 -05:00
|
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
|
|
|
|
|
)
|
|
|
|
|
install(DIRECTORY
|
|
|
|
|
launch/config
|
|
|
|
|
launch/data
|
|
|
|
|
launch/demo
|
|
|
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
|
|
|
|
|
)
|
2013-12-11 00:12:44 +00:00
|
|
|
|
2014-12-10 11:39:32 -05:00
|
|
|
## install plugins/nodelets xml
|
|
|
|
|
install(FILES
|
|
|
|
|
nodelet_plugins.xml
|
|
|
|
|
plugin_description.xml
|
2015-03-22 17:47:35 -04:00
|
|
|
costmap_plugins.xml
|
2014-12-10 11:39:32 -05:00
|
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
|
|
|
)
|
2016-05-04 17:07:40 -04:00
|
|
|
IF(costmap_2d_FOUND)
|
|
|
|
|
install(FILES
|
|
|
|
|
costmap_plugins.xml
|
|
|
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
|
|
|
|
|
)
|
|
|
|
|
ENDIF(costmap_2d_FOUND)
|
2014-12-10 11:39:32 -05:00
|
|
|
|
2013-12-11 00:12:44 +00:00
|
|
|
#############
|
|
|
|
|
## Testing ##
|
|
|
|
|
#############
|
|
|
|
|
|
|
|
|
|
## Add gtest based cpp test target and link libraries
|
|
|
|
|
# catkin_add_gtest(${PROJECT_NAME}-test test/test_rtabmap.cpp)
|
|
|
|
|
# if(TARGET ${PROJECT_NAME}-test)
|
|
|
|
|
# target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})
|
|
|
|
|
# endif()
|
|
|
|
|
|
|
|
|
|
## Add folders to be run by python nosetests
|
|
|
|
|
# catkin_add_nosetests(test)
|
2016-08-15 18:44:45 -04:00
|
|
|
|