1 Star 0 Fork 1

盘继松/imu_allan

forked from bill4u/imu_allan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CMakeLists.txt 1.81 KB
一键复制 编辑 原始数据 按行查看 历史
bill4u 提交于 2021-10-19 17:52 . initcommit
cmake_minimum_required(VERSION 2.8.3)
project(imu_allan)
## Compile as C++11, supported in ROS Kinetic and newer
set(CMAKE_BUILD_TYPE "Release")
set(CMAKE_CXX_FLAGS "-std=c++11")
#-DEIGEN_USE_MKL_ALL")
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -Wall -g -fPIC")
## 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
roscpp
std_msgs
geometry_msgs
nav_msgs
)
find_package(OpenCV REQUIRED)
find_package(Ceres REQUIRED)
find_package(Eigen3 REQUIRED)
include_directories(
${catkin_INCLUDE_DIRS}
${CERES_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
)
add_library(code_utils STATIC src/code_utils/cv_utils.cc
src/code_utils/dlt.cpp
src/code_utils/linearpnp.cpp
src/code_utils/nonlinearpnp.cpp
src/code_utils/pnp.cpp
src/code_utils/Polynomial.cpp)
target_link_libraries(code_utils ${Boost_LIBRARIES} ${OpenCV_LIBS} ${CERES_LIBRARIES})
catkin_package(
INCLUDE_DIRS
LIBRARIES code_utils
CATKIN_DEPENDS roscpp std_msgs
)
set(ACC_LIB_SOURCE_FILES
${PROJECT_SOURCE_DIR}/src/acc_lib/allan_acc.cpp
${PROJECT_SOURCE_DIR}/src/acc_lib/fitallan_acc.cpp
)
set(GYR_LIB_SOURCE_FILES
${PROJECT_SOURCE_DIR}/src/gyr_lib/allan_gyr.cpp
${PROJECT_SOURCE_DIR}/src/gyr_lib/fitallan_gyr.cpp
)
add_executable(imu_an
src/imu_an.cpp
${GYR_LIB_SOURCE_FILES}
${ACC_LIB_SOURCE_FILES}
)
target_link_libraries(imu_an ${catkin_LIBRARIES} ${OpenCV_LIBS} ${CERES_LIBRARIES})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ji_song_pan/imu_allan.git
git@gitee.com:ji_song_pan/imu_allan.git
ji_song_pan
imu_allan
imu_allan
master

搜索帮助