代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.0.2)
project(lvio_2d)
add_compile_options(-std=c++17)
SET(CMAKE_BUILD_TYPE "Release")
# set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g ")
add_definitions(-DNDEBUG)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
roscpp
tf2_ros
)
find_package(OpenCV REQUIRED)
find_package(Ceres REQUIRED)
catkin_package(
)
include_directories(
/usr/include/eigen3
src
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
)
add_library(utilies src/utilies/common.cpp
src/utilies/params.cpp
src/utilies/visualization.cpp
)
add_library(trajectory src/trajectory/trajectory.cpp
src/trajectory/camera_manager.cpp
src/trajectory/laser_manager.cpp
src/trajectory/keyframe_manager.cpp
src/factor/solver.cpp
)
add_executable(${PROJECT_NAME}_node src/${PROJECT_NAME}_node.cpp
)
target_link_libraries(${PROJECT_NAME}_node
utilies
trajectory
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
${CERES_LIBRARIES}
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。