【SLAM轨迹误差】rpg_trajectory_evaluation

news/2024/12/28 17:05:13/

下载地址:https://www.zora.uzh.ch/id/eprint/175991/1/IROS18_Zhang.pdf

Z. Zhang and D. Scaramuzza, “A Tutorial on Quantitative Trajectory
Evaluation for Visual(-Inertial) Odometry,” 2018 IEEE/RSJ
International Conference on Intelligent Robots and Systems (IROS),
Madrid, Spain, 2018, pp. 7244-7251, doi: 10.1109/IROS.2018.8593941.

安装python2 的pip

wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
// 或者curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
sudo apt-get install python-dev

安装成功之后可以查看

pf@pf-NUC12WSKi7:~$ pip -V
pip 20.3.4 from /home/pf/.local/lib/python2.7/site-packages/pip (python 2.7)

安装依赖

pip install numpy
pip install matplotlib
pip install colorama
pip install ruamel.yaml
sudo apt install texlive-fonts-recommended texlive-fonts-extra
sudo apt install dvipng
pip install PyYAML==5.1

下载编译如下

mkdir catkin_ws
cd catkin_ws
mkdir src
cd src
git clone  https://github.com/uzh-rpg/rpg_trajectory_evaluation.git
git clone https://github.com/catkin/catkin_simple.git
cd ..
catkin_make 

简单评测

source devel/setup.bash
rosrun rpg_trajectory_evaluation analyze_trajectory_single.py <result_folder>

直接将 <result_folder>替换为iTest文件夹即可,文件夹中放置真值和对应的估计值如下:

├── analyze_trajectories_config
│   ├── euroc_vio_mono_stereo.yaml
│   └── euroc_vislam_mono.yaml
├── CMakeLists.txt
├── iTest
│   ├── stamped_groundtruth.txt
│   └── stamped_traj_estimate.txt

深入说明:

数据格式:

  • stamped_groundtruth.txt: groundtruth poses with timestamps
  • stamped_traj_estimate.txt: estimated poses with timestamps
  • (optional) eval_cfg.yaml: specify evaluation parameters
  • (optional) start_end_time.yaml: specify the start and end time (in seconds) for analysis., 0 to N-1

*** stamped_groundtruth.txt😗*

timestamp tx ty tz qx qy qz qw

1.403636580013555527e+09 1.258278699999999979e-02 -1.561510199999999963e-03 -4.015300900000000339e-02 -5.131151899999999988e-02 -8.092916900000000080e-01 8.562779200000000248e-04 5.851609599999999523e-01 …

scripts/dataset_tools 文件下的脚本可以转换以上数据格式 (EuRoC style, ROS bag)

参数说明:
eval_cfg.yaml
trajectory alignment (used in absolute errors):

  • align_type:
    • sim3: a similarity transformation (for vision-only monocular case)
    • se3: a rigid body transformation (for vision-only stereo case)
    • posyaw: a translation plus a rotation around gravity (for visual-inertial case)
    • none: do not align the trajectory
  • align_num_frames: the number of poses (starting from the beginning) that will be used in the trajectory alignment. -1 means all poses will be used.

If this file does not exist, trajectory alignment will be done using sim3 and all the poses.

Start and end times

start_end_time.yaml can specify the following (according to groundtruth time):

  • start_time_sec: only poses after this time will be used for analysis
  • end_time_sec: only poses before this time will be used for analysis

If this file does not exist, analysis be done for all the poses in stamped_traj_estimate.txt.

rosrun 
rpg_trajectory_evaluation 
analyze_trajectories.py  euroc_vislam_mono.yaml --output_dir=./results/euroc_vislam_mono --results_dir=./results/euroc_vislam_mono --platform laptop --odometry_error_per_dataset --plot_trajectories --rmse_table --rmse_boxplot --mul_trials=10

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

相关文章

RabbitMQ工作模式-主题模式

主题模式 官方文档参考&#xff1a;https://www.rabbitmq.com/tutorials/tutorial-five-python.html 使用topic类型的交换器&#xff0c;队列绑定到交换器、bingingKey时使用通配符&#xff0c;交换器将消息路由转发到具体队列时&#xff0c;会根据消息routingKey模糊匹配&am…

爬虫逆向实战(二十六)--某某学堂登录

一、数据接口分析 主页地址&#xff1a;某某学堂 1、抓包 通过抓包可以发现数据接口是Account/LoginPost 2、判断是否有加密参数 请求参数是否加密&#xff1f; 通过查看“载荷”模块可以发现pass是加密参数 请求头是否加密&#xff1f; 无响应是否加密&#xff1f; 无co…

记一次对链接、COMMON块、多重符号定义的理解

问题引入 首先是两个测试程序 // foo.c long long int a;// bar.c #include <stdio.h>int a; int main(){a 1;long long int len sizeof(a);printf("%lld\n", len);return 0; }将两个程序链接到一起 问题&#xff1a;len等于几&#xff1f; 初步分析 环境…

Navicat激活时出现rsa public key not find错误

Navicat激活时出现rsa public key not find错误 在激活时&#xff0c;先不打开应用&#xff0c;先用管理员身份打开注册机Navicat_Keygen_Patch_v5.6_By_DFoX.exe&#xff0c;Navicat v15——>MySql——>Simplified Chinese——>Patch&#xff0c;执行完这些步骤之后…

1.3.2背包模型(二)

1.二维费用的背包问题 有 N N N件物品和一个容量是 V V V的背包&#xff0c;背包能承受的最大重量是 M M M。 每件物品只能用一次。体积是 v i v_{i} vi​&#xff0c;重量是 m i m_{i} mi​&#xff0c;价值是 w i w_{i} wi​。 求解将哪些物品装入背包&#xff0c;可使物…

人工智能学习专栏

这个专栏就专门用来记录自己的深度学习的历程吧。从做MCU开始、Soc、Linux系统转行到AI领域&#xff0c;其过程是痛苦的。至少数学这块&#xff0c;那是花了很多时间去从头去学。但是还是有很多不懂的地方。坚持&#xff01;&#xff01;&#xff01;&#xff01;

Android 使用模拟器模拟Linux操作系统

1. 简介 在Android手机上使用模拟器模拟ubuntu等操作系统&#xff0c;便于测试 2. 软件准备 Termux&#xff1a;是一款 Android 终端模拟器和 Linux 环境应用程序&#xff0c;无需 root 或设置即可直接运行。虽然酷安和谷歌菜市场都能下载&#xff0c;但这些渠道都很久没更新…

Python Flask swagger自动生成文档

首先安装依赖&#xff1a; pip install flask_siwadoc pydantic封装swagger.py文件&#xff0c;代码如下&#xff1a; from flask_siwadoc import SiwaDoc siwa SiwaDoc()然后在主应用中&#xff08;项目入口文件&#xff09;加入以下代码&#xff1a; from flask import F…