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

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

相关推荐
太阳之子7 小时前
给你的 AI Agent 装一双"能上网冲浪"的眼睛
开源
冬奇Lab19 小时前
每日一个开源项目(第148篇):obsidian-skills - Obsidian CEO 亲写的 AI Agent 格式规范,让 Agent 不再破坏你的 Vault
人工智能·开源·资讯
orion5719 小时前
Missing Semester Class1:course overview and introduction of shell
linux
apocelipes1 天前
常用编程语言和库的正则表达式性能对比
c语言·c++·python·性能优化·golang·开发工具和环境
程序员老赵1 天前
Docker 部署 Redmine:老牌开源项目管理部署实测记录
docker·开源·团队管理
用户120487221611 天前
Linux驱动编译与加载
linux·嵌入式
colir01 天前
被粉丝夸爆的超级 ai 个人工作站,原来这么多福利
开源·agent·claude
程序员老赵1 天前
服务器文件不想 SFTP 上传?Docker 跑个 File Browser,浏览器就能管理
服务器·docker·开源
饼干哥哥1 天前
我把GPT-image-2生成PSD的能力打包成了Skill,免费开源
gpt·开源·ai编程
用户805533698031 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式