ubuntu16.04编译安装imu_tk

imu_tk代码地址

https://bitbucket.org/alberto_pretto/imu_tk

安装依赖项

sudo apt-get install build-essential cmake libeigen3-dev libqt4-dev libqt4-opengl-dev freeglut3-dev gnuplot

安装ceres-solver

https://www.cnblogs.com/feifanrensheng/p/8630149.html

编译安装imu_tk

cd imu_tk
mkdir build
cd build
cmake  ..
make

遇到的问题

下面是用cmake编译你的程序可能会遇到的问题

(1)找不到xi和xmu库

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
GLUT_Xi_LIBRARY (ADVANCED)
    linked by target "WindowsTest" in directory /home/me/devl/c++/game/2DGame/src
GLUT_Xmu_LIBRARY (ADVANCED)
    linked by target "WindowsTest" in directory /home/me/devl/c++/game/2DGame/src

https://blog.csdn.net/whu_zcj/article/details/49737243

解决方法

sudo apt-get install libxmu-dev libxi-dev

(2)找不到boost库

sudo apt-get install libboost-dev

编译成功

-- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
imu_tk;ceres;/usr/lib/x86_64-linux-gnu/libQtOpenGL.so;/usr/lib/x86_64-linux-gnu/libQtGui.so;/usr/lib/x86_64-linux-gnu/libQtCore.so;/usr/lib/x86_64-linux-gnu/libGLU.so;/usr/lib/x86_64-linux-gnu/libGL.so;/usr/lib/x86_64-linux-gnu/libglut.so;/usr/lib/x86_64-linux-gnu/libXmu.so;/usr/lib/x86_64-linux-gnu/libXi.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zn/alberto_pretto-imu_tk-7780270fb9a2/build

make 报错

usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
 #error This file requires compiler and library support \

当使用CMAKE编译工程时,出现这个错误,解决办法:
在工程主目录的CMakeLists.txt中添加如下,可以编译成功:

SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")

编译成功

Test the library with the test_imu_calib app (binary in /bin, source code in src/test_imu_calib.cpp): test_imu_calib performs an IMU calibration given the data included in bin/test_data/:

./test_imu_calib test_data/xsens_acc.mat test_data/xsens_gyro.mat

结果

Accelerometers calibration: Better calibration obtained using threshold multiplier 6 with residual 0.120131
Misalignment Matrix
          1  -0.0033593 -0.00890639
          0           1  -0.0213341
         -0           0           1
Scale Matrix
0.00241278          0          0
         0 0.00242712          0
         0          0 0.00241168
Bias Vector
33124.2
33275.2
32364.4

Accelerometers calibration: inverse scale factors:
414.459
412.01
414.649

Press Enter to continue

Gyroscopes calibration: residual 0.00150696
Misalignment Matrix
         1 0.00593634 0.00111101
0.00808812          1 -0.0535569
 0.0253067 -0.0025513          1
Scale Matrix
0.000209295           0           0
          0 0.000209899           0
          0           0 0.000209483
Bias Vector
32777.1
32459.8
32511.8

Gyroscopes calibration: inverse scale factors:
4777.96
4764.21
4773.66

测试数据的时间间隔是0.01秒,也就是以100hz采集imu的数据。

原文地址:https://www.cnblogs.com/feifanrensheng/p/10437172.html

时间: 2024-11-10 03:52:34

ubuntu16.04编译安装imu_tk的相关文章

ubuntu16.04编译安装mysql5.7

1.安装编译依赖 sudo apt-get install make cmake gcc g++ bison libncurses5-dev build-essential 2.下载mysql5.7并解压 下载地址: tar -xzf mysql-5.7.21.tar.gz -C /usr/localcd /usr/local/mysql-5.7.21 3.编译安装 cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/

如何完成Ubuntu16.04编译安装Nginx

NGINX可以用作http/https服务器.反向代理服务器.邮件代理服务器.负载平衡器.TLS终结者或缓存服务器.它的设计非常模块化.它有本地模块和由社区创建的第三方模块.它是用C语言编写的,它是一种非常快速和轻量级的软件.注意:NGINX有两个版本流并行运行--稳定和主线.两个版本都可以在生产服务器上使用.建议在生产中使用主线版本.从源代码中安装NGINX是相对"容易"的--下载最新版本的NGINX源代码,配置.构建和安装它.在本教程中,我将使用主线版本,在撰写本文时是1.13.1

ubuntu16.04编译安装php7.2

1,下载解压 tar xf php-7.2.0.tar.gz cd php-7.2.0/ 2,安装必要的库 sudo apt-get install libxml2-devsudo apt-get install openssl sudo apt-get install libssl-devsudo apt-get install makesudo apt-get install curlsudo apt-get install libcurl4-gnutls-devsudo apt-get i

Ubuntu16.04 Caffe 安装步骤记录(超详尽)

"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Ubuntu16.04 Caffe 安装步骤记录(超详尽) - yhao的博客 - 博客频道 - CSDN.NET yhao的博客 最怕庸碌无为,还安慰自己平凡可贵 目录视图 摘要视图 订阅 [活动]2017 CSDN博客专栏评选 &nbsp [5月书讯]流畅的Pyt

ubuntu16.04 lts 安装freeswitch

ubuntu16.04 lts 安装freeswitch: 0.安装一堆依赖包. 1.使用root权限  su root , FSfile=$(curl -s https://files.freeswitch.org/releases/freeswitch/ | sed -n 's/.*"\(freeswitch\-[0-9]*\.[0-9]*\.[0-9]*\.tar\.gz\)".*/\1 /p' | tail -n 1) && echo Downloading $

Ubuntu16.04 caffe安装记录

Ubuntu16.04 caffe安装记录 1.安装显卡驱动 首先更新输入: sudo apt-get update sudo apt-get upgrade 然后打开System Settings中Software&Updates 如下选择,并点击Apply Changes. 2.禁用nouveau 编辑文件 sudo gedit /etc/modprobe.d/blacklist-nouveau.conf 在打开的文件中写入: blacklist nouveau option nouveau

ubuntu16.04下安装artoolkit5

目前对AR技术的常见理解就是CV(Computer Vision)+CG(Computer Graphic).CV的方法很多,简单些比如FREAK+ICP(ARToolKit中的NFT),复杂些就是SLAM(Magic Leap).CG就没什么好说的,利用CV算法获取到的图形相关信息(比如CG中的模型矩阵.视图矩阵.投影矩阵)进行绘制.从这一点上来说Pokemon GO确实不能算作AR游戏,毕竟人家只是基于LBS的. 从目前来看vision based的AR系统才是主流.但是局限于我个人的见识,

ubuntu16.04下安装petalinux

ubuntu16.04下安装petalinux 参考https://www.cnblogs.com/vacajk/p/6146146.html 安装环境: 1. ubuntu 16.04 2. petalinux-v2015.4 3. 目标板:zynq 7010 SOC 安装步骤: 1. 在home目录下新建两个文件夹:petalinux和petalinux_installer两个文件夹,将安装包petalinux-v2015.4-final-installer-dec.run放到文件夹peta

ubuntu 14.04编译安装xen4.4总结

1. 安装环境 操作系统:ubuntu14.04 xen版本:xen4.4 2. 依赖包的安装 在安装xen之前先进行依赖包的安装,在不停得尝试之后,总结出以下需要安装的依赖包. suso apt-get install gcc make binutils zlib1g-dev python-dev sudo apt-get install libncurses5-dev libcurl4-openssl-dev libx11-dev sudo apt-get install uuid-dev