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

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

相关推荐
Tingjct3 小时前
Linux常用指令
linux·运维·服务器
清心歌3 小时前
CopyOnWriteArrayList 实现原理
java·开发语言
智者知已应修善业4 小时前
【51单片机单按键切换广告屏】2023-5-17
c++·经验分享·笔记·算法·51单片机
广州灵眸科技有限公司4 小时前
为RK3588注入澎湃算力:RK1820 AI加速卡完整适配与评测指南
linux·网络·人工智能·物联网·算法
IT界的老黄牛4 小时前
Linux 压缩命令实战:tar、gzip、bzip2、xz、zstd 怎么选?一篇讲清楚
linux·运维·服务器
良木生香4 小时前
【C++初阶】C++入门相关知识(2):输入输出 & 缺省参数 & 函数重载
开发语言·c++
小此方4 小时前
Re:从零开始的 C++ 进阶篇(三)彻底搞懂 C++ 多态:虚函数、虚表与动态绑定的底层原理
c++
忘梓.4 小时前
墨色规则与血色节点:C++红黑树设计与实现探秘
java·开发语言·c++
hhh3u3u3u4 小时前
Visual C++ 6.0中文版安装包下载教程及win11安装教程
java·c语言·开发语言·c++·python·c#·vc-1