OpenAI Gym multi-goal environments for goal-conditioned and language-conditioned deep reinforcement learning build with PyBullet
Project description
LANRO (Language Robotics)
LANRO is a platform to study language-conditioned reinforcement learning with a synthetic caretaker providing instructions in hindsight. It had been published as part of our paper Grounding Hindsight Instructions in Multi-Goal Reinforcement Learning for Robotics.
Installation
Pip module
pip install lanro-gym
From source
git clone https://github.com/frankroeder/lanro-gym.git
cd lanro-gym/ && pip install -e .
or
# via https
pip install git+https://github.com/frankroeder/lanro-gym.git
# or ssh
pip install git+ssh://git@github.com/frankroeder/lanro-gym.git
Example
import gym
import lanro_gym
env = gym.make('PandaStack2-v0', render=True)
obs = env.reset()
done = False
while not done:
obs, reward, done, info = env.step(env.action_space.sample())
env.close()
Environments
Click here for the environments README
Keyboard and mouse control
It is also possible to manipulate the robot with sliders
python main.py -i --env PandaNLReach2-v0
or your keyboard
python main.py -i --keyboard --env PandaNLReach2-v0
Developers
Running tests
We use pytest.
PYTHONPATH=$PWD pytest test/
Measure the FPS of your system:
PYTHONPATH=$PWD python examples/fps.py
Acknowledgements
This work uses code and got inspired by following open-source projects:
pybullet
Homepage https://pybullet.org/
Source: https://github.com/bulletphysics/bullet3/tree/master/examples/pybullet
License: Zlib
panda-gym
Source: https://github.com/qgallouedec/panda-gym
License: MIT
Changes: The code structure of lanro-gym
contains copies and extensively modified parts of panda-gym
.
Citations
pybullet
@MISC{coumans2021,
author = {Erwin Coumans and Yunfei Bai},
title = {PyBullet, a Python module for physics simulation for games, robotics and machine learning},
howpublished = {\url{http://pybullet.org}},
year = {2016--2021}
}
panda-gym
@article{gallouedec2021pandagym,
title = {{panda-gym: Open-Source Goal-Conditioned Environments for Robotic Learning}},
author = {Gallou{\'e}dec, Quentin and Cazin, Nicolas and Dellandr{\'e}a, Emmanuel and Chen, Liming},
year = 2021,
journal = {4th Robot Learning Workshop: Self-Supervised and Lifelong Learning at NeurIPS},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for lanro_gym-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38c307b0559849e4ba904f611fc7213337a029c1ab645bafac02ec4ca87398e8 |
|
MD5 | 1267d431ea7482d6fee9ac283ad26191 |
|
BLAKE2b-256 | bad128230c9ecfd38cf81689103214bffca457735811fd0c72f6cb9507b15107 |