这是本文档旧的修订版!


如何在ubuntu22上快速安装rlbench

我们参照 https://gitee.com/caodev/mirror-RLBench/tree/master 镜像网站,阅读安装说明

首先配置环境变量,并安装CoppeliaSim ,如果无法下载 tar.xz 使用迅雷可解决。

安装 CoppeliaSim

一般不回遇到什么问题

# set env variables
export COPPELIASIM_ROOT=${HOME}/CoppeliaSim
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COPPELIASIM_ROOT
export QT_QPA_PLATFORM_PLUGIN_PATH=$COPPELIASIM_ROOT

wget https://downloads.coppeliarobotics.com/V4_1_0/CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz
mkdir -p $COPPELIASIM_ROOT && tar -xf CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz -C $COPPELIASIM_ROOT --strip-components 1
rm -rf CoppeliaSim_Edu_V4_1_0_Ubuntu20_04.tar.xz

安装PyRep

使用镜像 https://gitee.com/caodev/mirror-PyRep 解决卡顿问题

使用conda 创建 rlbench 环境,使用python3.8 这些库都比较老,不能用太新的python

conda create -n rlbench python=3.8.13

conda activate rlbench

进入项目目录,根据readme的指导开始安装 ,因为已经设置过环境变量,可以跳过,但是记得 source ~/.bashrc

安装步骤稍微有点曲折,注意:

pip3 install -r requirements.txt
pip3 install .

会有如下的报错,没问题的,继续安装

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
rlbench 1.2.0 requires Pillow, which is not installed.
rlbench 1.2.0 requires pyquaternion, which is not installed.
rlbench 1.2.0 requires scipy, which is not installed.

执行 pip install Pillow pyquaternion scipy 解决;

测试语句如下,如果能弹出来模拟器,则基本正常。

python3 examples/example_baxter_pick_and_pass.py

评论

请输入您的评论. 可以使用维基语法:
 
机器人/仿真/rlbench/如何在ubuntu22上快速安装rlbench.1765883410.txt.gz · 最后更改: 2025/12/16 11:10