代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 2.8.3)
project(lsc_planner)
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_BUILD_TYPE Release)
include_directories(${PROJECT_SOURCE_DIR}/include)
#BOOST14
find_package(Boost 1.58 REQUIRED COMPONENTS program_options)
#EIGEN
find_package(Eigen3 REQUIRED)
include_directories(${EIGEN3_INCLUDE_DIR})
#OCTOMAP
find_package(octomap REQUIRED)
include_directories(${OCTOMAP_INCLUDE_DIRS})
link_libraries(${OCTOMAP_LIBRARIES})
add_definitions(-DOCTOMAP_NODEBUGOUT)
#EDT
find_package(dynamicEDT3D REQUIRED)
include_directories(${DYNAMICEDT3D_INCLUDE_DIRS})
link_libraries(${DYNAMICEDT3D_LIBRARIES})
#CPLEX
add_definitions(-DNDEBUG)
add_definitions(-DIL_STD)
set(CPLEX_PREFIX_DIR /opt/ibm/ILOG/CPLEX_Studio201)
set(CPLEX_INCLUDE_DIR ${CPLEX_PREFIX_DIR}/cplex/include)
set(CPLEX_LIBRARIES_DIR ${CPLEX_PREFIX_DIR}/cplex/lib/x86-64_linux/static_pic)
set(CONCERT_INCLUDE_DIR ${CPLEX_PREFIX_DIR}/concert/include)
set(CONCERT_LIBRARIES_DIR ${CPLEX_PREFIX_DIR}/concert/lib/x86-64_linux/static_pic)
include_directories(${CPLEX_INCLUDE_DIR} ${CONCERT_INCLUDE_DIR})
link_directories(${CPLEX_LIBRARIES_DIR} ${CONCERT_LIBRARIES_DIR})
set(CPLEX_LIBRARIES
m
ilocplex
cplex
concert
pthread
dl
)
#CATKIN
find_package(catkin REQUIRED COMPONENTS
roscpp
roslib
rosbag
std_msgs
nav_msgs
geometry_msgs
octomap_ros
octomap_msgs
dynamic_msgs
)
include_directories(
${catkin_INCLUDE_DIRS}
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp roslib message_runtime octomap_ros octomap_msgs
DEPENDS OCTOMAP
)
#Message
#RVO2-2D
set(RVO2_2D_SRC
src/RVO2/Agent.cpp
src/RVO2/KdTree.cpp
src/RVO2/Obstacle.cpp
src/RVO2/RVOSimulator.cpp
)
#RVO2-3D
set(RVO2_3D_SRC
src/RVO2-3D/Agent.cpp
src/RVO2-3D/KdTree.cpp
src/RVO2-3D/RVOSimulator.cpp
)
#Astar-3D
set(Astar_3D_SRC
src/Astar-3D/astar.cpp
src/Astar-3D/environmentoptions.cpp
src/Astar-3D/isearch.cpp
src/Astar-3D/list.cpp
src/Astar-3D/map.cpp
src/Astar-3D/astarplanner.cpp
src/Astar-3D/node.cpp
)
#openGJK
set(OPENGJK_SRC
src/openGJK/openGJK.cpp
)
#LSC planner
set(LSC_PLANNER_SRC
src/traj_planner.cpp
src/traj_optimizer.cpp
src/param.cpp
src/mission.cpp
src/collision_constraints.cpp
src/grid_based_planner.cpp
${RVO2_2D_SRC}
${RVO2_3D_SRC}
${Astar_3D_SRC}
${OPENGJK_SRC}
)
#########
# Build #
#########
add_executable(multi_sync_simulator_node
src/multi_sync_simulator_node.cpp
src/multi_sync_simulator.cpp
src/multi_sync_replayer.cpp
${LSC_PLANNER_SRC}
)
add_dependencies(multi_sync_simulator_node ${catkin_EXPORTED_TARGETS})
target_link_libraries(multi_sync_simulator_node
${catkin_LIBRARIES}
${OCTOMAP_LIBRARIES}
${CPLEX_LIBRARIES}
stdc++fs
)
add_executable(cmd_publisher_node
src/cmd_publisher.cpp
src/cmd_publisher_node.cpp
src/mission.cpp
)
add_dependencies(cmd_publisher_node ${catkin_EXPORTED_TARGETS})
target_link_libraries(cmd_publisher_node
${catkin_LIBRARIES}
)
add_executable(multi_sync_debugger_node
src/multi_sync_debugger_node.cpp
src/collision_constraints.cpp
${OPENGJK_SRC}
)
add_dependencies(multi_sync_debugger_node ${catkin_EXPORTED_TARGETS})
target_link_libraries(multi_sync_debugger_node
${catkin_LIBRARIES}
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。