flightmare——RL部分

5 篇文章 2 订阅

路径:flightmare/src/flightmare/flightrl/examples
尝试运行:python run_drone_control.py

运行指令:

python3 run_drone_control.py --train 0 --render 1

前期准备:
anaconda建立python=3.6的库:

conda create -n flightmare python=3.6

开虚拟环境

source activate
conda activate flightmare

目前尝试出来的需要另外安装的依赖:

pip install ruamel.yaml
pip install stable_baselines
pip install tensorflow==1.13.1
  • 对于:ModuleNotFoundError: No module named 'rpg_baselines' :
    在路径/flightrl/setup.py中,将包的内容rpg_baselines后面添加成:'rpg_baselines', 'rpg_baselines.ppo', 'rpg_baselines.common', 'rpg_baselines.envs'
    再执行:
cd flightrl
pip 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.
nes-py 8.1.6 requires gym>=0.17.2, but you have gym 0.11.0 which is incompatible.
nes-py 8.1.6 requires pyglet<=1.5.0,>=1.4.0, but you have pyglet 1.5.15 which is incompatible.
Successfully installed PyOpenGL-3.1.5 gym-0.11.0 rpg-baselines-0.0.1 stable-baselines-2.10.1

为了保证后面少出问题,根据提示进行了包的安装:

pip install gym==0.17.2
pip install nes-py==8.1.6
  • ModuleNotFoundError: No module named 'flightgym':
    包在路径:~/flightmare/src/flightmare/flightlib/tests/flightgym/
cd flightmare/flightlib
# it first compile the flightlib and then install it as a python package.
pip install .

------------- 同步更新 TBC -------------------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值