ROS2安装EVO工具包

简单记录ROS2安装EVO评估工具--

1.安装EVO

复制代码
pip install evo --upgrade --no-binary evo  

若提示找不到pip,则先安装pip:

复制代码
sudo apt install python3-pip

2.安装EVO后,直接运行

复制代码
evo_traj tum pose.txt -p

发现报错:

WARNING: The scripts f2py and numpy-config are installed in '/home/siliya/.local/bin' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

WARNING: The script natsort is installed in '/home/siliya/.local/bin' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

WARNING: The script rosbags-convert is installed in '/home/siliya/.local/bin' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

WARNING: The scripts evo, evo_ape, evo_config, evo_ipython, evo_res, evo_rpe and evo_traj are installed in '/home/siliya/.local/bin' which is not on PATH.

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

证明路径不对,输入以下指令:

复制代码
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc^C
source ~/.bashrc

然后再次查看轨迹,发现报错为:

/usr/lib/python3/dist-packages/scipy/init.py:146: UserWarning: A NumPy version >=1.17.3 and <1.25.0 is required for this version of SciPy (detected version 2.2.6

warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"

证明相关的依赖版本不正确,则运行以下命令:

复制代码
# 卸载当前版本的相关依赖
pip uninstall numpy scipy matplotlib -y 

# 安装兼容版本
pip install numpy==1.24.4 scipy==1.9.3 matplotlib==3.7.3

# 安装EVO
pip install evo --upgrade --no-binary evo

# 路径添加
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc^C
source ~/.bashrc

3.再次运行查看轨迹,发现报错:

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

ERROR Unhandled error in evo.cli.traj

提示为没有PyQT6,安装即可:

复制代码
# 安装PyQt6
pip install PyQt6

# 再次测试EVO
evo_traj tum pose_tum.txt -p

然后即可正常运行,查看轨迹,如图:

相关推荐
by209998 小时前
Linux 文件描述符与重定向
linux·服务器
橙橙笔记8 小时前
Linux基础与命令的学习
linux·运维·服务器·shell
无奈笑天下8 小时前
银河麒麟桌面操作系统【命令行配置文件与图片搜索功能】操作方法
linux·运维·服务器
geovindu8 小时前
python:Logistic Regression
开发语言·后端·python·算法
摇滚侠9 小时前
《On Java 中文版 基础卷》阅读笔记 内部类 21
java·开发语言·笔记
番茄味城市甜菜9 小时前
二叉树刷题(C语言)
c语言·开发语言
布莱克6059 小时前
Swift 自动引用计数(ARC)详解:原理、循环引用与最佳实践
开发语言·ios·swift·arc·自动引用计数
飞花漫卷,情随岁迁9 小时前
网络数据包转发与内核机制:小白概念科普
linux·运维·网络·数据库·mysql·oracle·智能路由器
FungLeo9 小时前
FengCMS·PHP+MySQL 升级实录 ·本地容器环境设计:只读挂载、LOCAL_UID、数据卷权限
开发语言·mysql·docker·php·fengcms
蔓越莓曲奇9 小时前
给 DeepSeek Harness 换上 GTA 6 皮肤:Agent 一干活,通缉星级就亮
前端·javascript·开源