VIO-SLAM allan方差工具

news/2024/10/22 18:33:56/

VIO第二讲 allen方差工具

1.先安装ceres依赖库,如果在学十四讲的时候装了就不用管这一步

git clone https://github.com/ceres-solver/ceres-solver
cd ceres
mkdir build
cd build
cmake ..
make
sudo make install

如果遇到了ceres的安装问题,见前面的博客https://blog.csdn.net/qq_28901541/article/details/89605525

2.下载code_utils

cd ~/catkin_ws/src
git clone https://github.com/gaowenliang/code_utils
cd ~/catkin_ws
catkin_make

这里会报一个路径错误,github的issue里面提供了解决办法
code_utils-master/src/sumpixel_test.cpp:2:24: fatal error: backward.hpp: 没有那个文件或目录 compilation terminated
解决办法:
这个sumpixel_test.hpp 里可以直接换成:
#include "code_utils/backward.hpp"
或者在CMakeLists.txt中加入包含路径:

include_directories( "include/code_utils")

然后重新

catkin_make`

3 下载编译imu_utils

cd ~/catkin_ws/src
git clone https://github.com/gaowenliang/imu_utils
cd ~/catkin_ws
catkin_make

4 下载vio_data_simulation-ros_version

cd  ~/catkin_ws/src
git clone https://github.com/HeYijia/vio_data_simulation/tree/ros_version

在vio_data_simulation/src/gener_alldata.cpp中修改生成的imu.bag的文件路径
将bag.open("/home/hyj/all_ros_ws/vio_sim_data_ws/src/data/imu.bag", rosbag::bagmode::Write);中的路径替换成自己的

进行编译

cd ~/catkin_ws
catkin_make

此处可能会提示cv-bridge.h找不到,自己到github去下一个cv-bridge进行安装
环境变量

source  ./devel/setup.bash

这儿可能用source devel/setup.bash依然会报找不到功能报的错误,所以加上./

自此生成了一个节点,可以生成一个imu.bag的包

运行

roscore
cd ~/catkin_ws/devel/lib/vio_data_simulation
rosrun vio_data_simulation vio_data_simulation_node

运行完之后生成了imu.bag的包(模拟imu的采集数据)

写一个launch文件

写一个launch文件imu.launch放在imu_utils/launch文件夹中
内容如下

<launch><node pkg="imu_utils" type="imu_an" name="imu_an" output="screen"><param name="imu_topic" type="string" value= "/imu"/><param name="imu_name" type="string" value= "imutest"/><param name="data_save_path" type="string" value= "$(find imu_utils)/data/"/><param name="max_time_min" type="int" value= "120"/><param name="max_cluster" type="int" value= "100"/></node>
</launch>

再运行

rosbag play -r 200 imu.bag
roslaunch imu_utils imu.launch

生成的数据在imu_utils/data文件夹下,总共有16个txt文件
再用matlab去画这些方差图,程序在imu_utils/scripts下
如果ubuntu没装matlab,可以把这程序和txt文件放到windows下的matlab去运行
draw_allan.m的运行后的结果如下,注意改里头的路径和文件名字

在这里插入图片描述

中值积分代码

在这里插入图片描述
其实有个小bug没考虑到,读者可以自己加上:
判断i+1帧数据是不是最后一帧数据,如果是,就break,否则继续


http://www.ppmy.cn/news/561610.html

相关文章

UAV路径规划算法与平台总结

平台类 GAAS https://gaas.gitbook.io/ XTDrone https://www.yuque.com/xtdrone/manual_cn 算法类 EGO https://github.com/ZJU-FAST-Lab/ego-planner EGO - &#xff08;Euclidean signed distance fuction )- (Gradient-based) -(Local Planner for Quadrotors) 3D,…

VINS 详解

VINS是视觉与IMU融合SLAM的代表&#xff0c;其实现了一个较为完整的SLAM工作&#xff0c;开源地址为&#xff1a;GitHub - HKUST-Aerial-Robotics/VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator 优点&#xff1a; 缺点&#xff1a; 预知识储…

阿木实验室PX4开发课程整理

1.1&#xff1a;altctrlt 打开终端 cd Desktop/ 进入到桌面目录 cd - 返回上次访问目录 cd .. 返回上一目录 gedit circular.cpp 进入某文件 roscd px4_control 进入文件夹px4_control rostopic echo /mavros/local_position/pose查看某主题信息 ls显示当下所有目录 touch my…

步骤四:T265和Mavros通讯

阿木的volans项目连接t265与px4是在2022年暑假实验的,但是随后在九月初再试实验时,由于一些暂时不知明的原因,无法联机。于是,我们改用了官网的连接方法。下面附上官网链接: T265 Intel Realsense Tracking Camera (VIO) | PX4 自动驾驶用户指南 2022.11.27: 上述问题…

PX4无人机ROS下仿真开发(基于volans项目,这也是volans写的)

在B站上有相应视频 https://space.bilibili.com/257641196?spm_id_from333.788.b_765f7570696e666f.1 转载自&#xff1a;https://www.guyuehome.com/7672 PX4无人机ROS下仿真开发 2020年5月26日 10时21分 bingobinlw PX4无人机ROS下仿真开发 Overview Simulation Px4…

飞鱼星VOLANS-4000GP系列千兆网吧应用方案

飞鱼星 ◆ 概述 随着网络经济的迅速崛起&#xff0c;网络应用得到蓬勃发展,昨天还徘徊在看看网页、发发邮件、聊聊天的“网络菜鸟”们&#xff0c;如今已频繁活跃于在线游戏、即时下载、网络音频、在线电影、视频会议等网络高端应用中。 面对着日益增长的需求&#xff0c;现代网…

PX4无人机ROS下仿真开发

PX4无人机ROS下仿真开发 Overview Simulation Px4_control Slam Map Image_process Planning Volans 项目地址volans 注&#xff1a;有任何疑问都可在issues提问:) Simulation 此simulation 包含2D、3D激光雷达模型、深度相机模型、双目相机模型、realsense相机模型…

基于cycle of curves的Nova证明系统(1)

1. 引言 主要见斯坦福大学Wilson Nguyen、Dan Boneh和微软研究中心Srinath Setty 2023年论文《Revisiting the Nova Proof System on a Cycle of Curves》。 前序博客有&#xff1a; Nova: Recursive Zero-Knowledge Arguments from Folding Schemes学习笔记 在2021年Nova …