|
|
|
@@ -22,7 +22,6 @@ find_package(Boost REQUIRED COMPONENTS system thread filesystem)
|
|
|
|
# does not produce. QUIET, not REQUIRED: a robot without GTest installed must
|
|
|
|
# does not produce. QUIET, not REQUIRED: a robot without GTest installed must
|
|
|
|
# still configure. The test block below requires it where it is actually used.
|
|
|
|
# still configure. The test block below requires it where it is actually used.
|
|
|
|
find_package(GTest QUIET)
|
|
|
|
find_package(GTest QUIET)
|
|
|
|
find_package(PCL REQUIRED COMPONENTS common io)
|
|
|
|
|
|
|
|
find_package(yaml-cpp REQUIRED)
|
|
|
|
find_package(yaml-cpp REQUIRED)
|
|
|
|
|
|
|
|
|
|
|
|
if (NOT BUILDING_WITH_CATKIN)
|
|
|
|
if (NOT BUILDING_WITH_CATKIN)
|
|
|
|
@@ -81,7 +80,7 @@ else()
|
|
|
|
INCLUDE_DIRS include
|
|
|
|
INCLUDE_DIRS include
|
|
|
|
LIBRARIES robot_costmap_2d plugins
|
|
|
|
LIBRARIES robot_costmap_2d plugins
|
|
|
|
CATKIN_DEPENDS robot_std_msgs robot_sensor_msgs geometry_msgs robot_nav_msgs robot_map_msgs robot_laser_geometry robot_visualization_msgs robot_voxel_grid robot_tf3_geometry_msgs robot_tf3_sensor_msgs data_convert robot_xmlrpcpp robot_cpp robot_time
|
|
|
|
CATKIN_DEPENDS robot_std_msgs robot_sensor_msgs geometry_msgs robot_nav_msgs robot_map_msgs robot_laser_geometry robot_visualization_msgs robot_voxel_grid robot_tf3_geometry_msgs robot_tf3_sensor_msgs data_convert robot_xmlrpcpp robot_cpp robot_time
|
|
|
|
DEPENDS PCL Boost
|
|
|
|
DEPENDS Boost
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
include_directories(
|
|
|
|
@@ -90,17 +89,15 @@ else()
|
|
|
|
${EIGEN3_INCLUDE_DIRS}
|
|
|
|
${EIGEN3_INCLUDE_DIRS}
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${GTEST_INCLUDE_DIRS}
|
|
|
|
${GTEST_INCLUDE_DIRS}
|
|
|
|
${PCL_INCLUDE_DIRS}
|
|
|
|
|
|
|
|
${TF3_INCLUDE_DIR}
|
|
|
|
${TF3_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
link_directories(${PCL_LIBRARY_DIRS})
|
|
|
|
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
# Define macro để dùng trong code
|
|
|
|
# Define macro để dùng trong code
|
|
|
|
add_definitions(-DROBOT_COSTMAP_2D_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
add_definitions(-DROBOT_COSTMAP_2D_DIR="${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
|
|
|
|
|
|
|
|
# Eigen và PCL definitions
|
|
|
|
# Eigen definitions
|
|
|
|
add_definitions(${EIGEN3_DEFINITIONS} ${PCL_DEFINITIONS})
|
|
|
|
add_definitions(${EIGEN3_DEFINITIONS})
|
|
|
|
|
|
|
|
|
|
|
|
# ========================================================
|
|
|
|
# ========================================================
|
|
|
|
# Core library: robot_costmap_2d
|
|
|
|
# Core library: robot_costmap_2d
|
|
|
|
@@ -126,7 +123,6 @@ if(BUILDING_WITH_CATKIN)
|
|
|
|
$<INSTALL_INTERFACE:include>
|
|
|
|
$<INSTALL_INTERFACE:include>
|
|
|
|
${EIGEN3_INCLUDE_DIRS}
|
|
|
|
${EIGEN3_INCLUDE_DIRS}
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${PCL_INCLUDE_DIRS}
|
|
|
|
|
|
|
|
${TF3_INCLUDE_DIR}
|
|
|
|
${TF3_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@@ -135,7 +131,6 @@ if(BUILDING_WITH_CATKIN)
|
|
|
|
PRIVATE Boost::boost Boost::system Boost::thread Boost::filesystem
|
|
|
|
PRIVATE Boost::boost Boost::system Boost::thread Boost::filesystem
|
|
|
|
PRIVATE yaml-cpp
|
|
|
|
PRIVATE yaml-cpp
|
|
|
|
PRIVATE dl
|
|
|
|
PRIVATE dl
|
|
|
|
PRIVATE ${PCL_LIBRARIES}
|
|
|
|
|
|
|
|
PRIVATE ${TF3_LIBRARY}
|
|
|
|
PRIVATE ${TF3_LIBRARY}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@@ -147,7 +142,6 @@ else()
|
|
|
|
$<INSTALL_INTERFACE:include>
|
|
|
|
$<INSTALL_INTERFACE:include>
|
|
|
|
${EIGEN3_INCLUDE_DIRS}
|
|
|
|
${EIGEN3_INCLUDE_DIRS}
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${Boost_INCLUDE_DIRS}
|
|
|
|
${PCL_INCLUDE_DIRS}
|
|
|
|
|
|
|
|
${TF3_INCLUDE_DIR}
|
|
|
|
${TF3_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@@ -158,7 +152,6 @@ else()
|
|
|
|
Boost::boost Boost::system Boost::thread Boost::filesystem
|
|
|
|
Boost::boost Boost::system Boost::thread Boost::filesystem
|
|
|
|
yaml-cpp
|
|
|
|
yaml-cpp
|
|
|
|
dl
|
|
|
|
dl
|
|
|
|
${PCL_LIBRARIES}
|
|
|
|
|
|
|
|
${TF3_LIBRARY}
|
|
|
|
${TF3_LIBRARY}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
@@ -274,7 +267,7 @@ else()
|
|
|
|
message(STATUS "Version: ${PROJECT_VERSION}")
|
|
|
|
message(STATUS "Version: ${PROJECT_VERSION}")
|
|
|
|
message(STATUS "C++ Standard: ${CMAKE_CXX_STANDARD}")
|
|
|
|
message(STATUS "C++ Standard: ${CMAKE_CXX_STANDARD}")
|
|
|
|
message(STATUS "Libraries: robot_costmap_2d, plugins")
|
|
|
|
message(STATUS "Libraries: robot_costmap_2d, plugins")
|
|
|
|
message(STATUS "Dependencies: robot_std_msgs, robot_sensor_msgs, geometry_msgs, robot_nav_msgs, robot_map_msgs, robot_laser_geometry, robot_visualization_msgs, robot_voxel_grid, tf3, robot_tf3_geometry_msgs, robot_tf3_sensor_msgs, data_convert, robot_xmlrpcpp, robot_cpp, robot_time, Eigen3, PCL, Boost, yaml-cpp")
|
|
|
|
message(STATUS "Dependencies: robot_std_msgs, robot_sensor_msgs, geometry_msgs, robot_nav_msgs, robot_map_msgs, robot_laser_geometry, robot_visualization_msgs, robot_voxel_grid, tf3, robot_tf3_geometry_msgs, robot_tf3_sensor_msgs, data_convert, robot_xmlrpcpp, robot_cpp, robot_time, Eigen3, Boost, yaml-cpp")
|
|
|
|
message(STATUS "=================================")
|
|
|
|
message(STATUS "=================================")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
|