All Projects → mahyaret → Gym Panda

mahyaret / Gym Panda

Licence: mit
An OpenAI Gym Env for Panda

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Gym Panda

Rex Gym
OpenAI Gym environments for an open-source quadruped robot (SpotMicro)
Stars: ✭ 684 (+2258.62%)
Mutual labels:  robotics, reinforcement-learning, openai-gym
Gym Ignition
Framework for developing OpenAI Gym robotics environments simulated with Ignition Gazebo
Stars: ✭ 97 (+234.48%)
Mutual labels:  robotics, reinforcement-learning, openai-gym
Pytorch Rl
This repository contains model-free deep reinforcement learning algorithms implemented in Pytorch
Stars: ✭ 394 (+1258.62%)
Mutual labels:  robotics, reinforcement-learning, openai-gym
Ravens
Train robotic agents to learn pick and place with deep learning for vision-based manipulation in PyBullet. Transporter Nets, CoRL 2020.
Stars: ✭ 133 (+358.62%)
Mutual labels:  robotics, reinforcement-learning, openai-gym
Gymfc
A universal flight control tuning framework
Stars: ✭ 210 (+624.14%)
Mutual labels:  robotics, reinforcement-learning, openai-gym
Gym Miniworld
Simple 3D interior simulator for RL & robotics research
Stars: ✭ 338 (+1065.52%)
Mutual labels:  robotics, reinforcement-learning, openai-gym
Gym Dart
OpenAI Gym environments using DART
Stars: ✭ 20 (-31.03%)
Mutual labels:  robotics, reinforcement-learning, openai-gym
Rl a3c pytorch
A3C LSTM Atari with Pytorch plus A3G design
Stars: ✭ 482 (+1562.07%)
Mutual labels:  reinforcement-learning, openai-gym
Holodeck
High Fidelity Simulator for Reinforcement Learning and Robotics Research.
Stars: ✭ 513 (+1668.97%)
Mutual labels:  robotics, reinforcement-learning
Gps
Guided Policy Search
Stars: ✭ 529 (+1724.14%)
Mutual labels:  robotics, reinforcement-learning
Hands On Reinforcement Learning With Python
Master Reinforcement and Deep Reinforcement Learning using OpenAI Gym and TensorFlow
Stars: ✭ 640 (+2106.9%)
Mutual labels:  reinforcement-learning, openai-gym
Awesome Robotics
A curated list of awesome links and software libraries that are useful for robots.
Stars: ✭ 478 (+1548.28%)
Mutual labels:  robotics, reinforcement-learning
Robosuite
robosuite: A Modular Simulation Framework and Benchmark for Robot Learning
Stars: ✭ 462 (+1493.1%)
Mutual labels:  robotics, reinforcement-learning
Gym Starcraft
StarCraft environment for OpenAI Gym, based on Facebook's TorchCraft. (In progress)
Stars: ✭ 514 (+1672.41%)
Mutual labels:  reinforcement-learning, openai-gym
Rl Book
Source codes for the book "Reinforcement Learning: Theory and Python Implementation"
Stars: ✭ 464 (+1500%)
Mutual labels:  reinforcement-learning, openai-gym
Gym Anytrading
The most simple, flexible, and comprehensive OpenAI Gym trading environment (Approved by OpenAI Gym)
Stars: ✭ 627 (+2062.07%)
Mutual labels:  reinforcement-learning, openai-gym
Robotics Rl Srl
S-RL Toolbox: Reinforcement Learning (RL) and State Representation Learning (SRL) for Robotics
Stars: ✭ 453 (+1462.07%)
Mutual labels:  robotics, reinforcement-learning
Habitat Lab
A modular high-level library to train embodied AI agents across a variety of tasks, environments, and simulators.
Stars: ✭ 587 (+1924.14%)
Mutual labels:  robotics, reinforcement-learning
Super Mario Bros Ppo Pytorch
Proximal Policy Optimization (PPO) algorithm for Super Mario Bros
Stars: ✭ 649 (+2137.93%)
Mutual labels:  reinforcement-learning, openai-gym
Gibsonenv
Gibson Environments: Real-World Perception for Embodied Agents
Stars: ✭ 666 (+2196.55%)
Mutual labels:  robotics, reinforcement-learning

gym-panda

Build Status Downloads PyPI version

OpenaAI Gym Franka Emika Panda robot grasping environment implemented with PyBullet

Links

Install

Install with pip:

pip install gym-panda

Or, install from source:

git clone https://github.com/mahyaret/gym-panda.git
cd gym-panda
pip install .

Basic Usage

Running an environment:

import gym
import gym_panda
env = gym.make('panda-v0')
env.reset()
for _ in range(100):
    env.render()
    obs, reward, done, info = env.step(
        env.action_space.sample()) # take a random action
env.close()

Running a PD control HACK!

import gym
import gym_panda

env = gym.make('panda-v0')
observation = env.reset()
done = False
error = 0.01
fingers = 1
object_position = [0.7, 0, 0.1]

k_p = 10
k_d = 1
dt = 1./240. # the default timestep in pybullet is 240 Hz  
t = 0

for i_episode in range(20):
   observation = env.reset()
   fingers = 1
   for t in range(100):
       env.render()
       print(observation)
       dx = object_position[0]-observation[0]
       dy = object_position[1]-observation[1]
       target_z = object_position[2] 
       if abs(dx) < error and abs(dy) < error and abs(dz) < error:
           fingers = 0
       if (observation[3]+observation[4])<error+0.02 and fingers==0:
           target_z = 0.5
       dz = target_z-observation[2]
       pd_x = k_p*dx + k_d*dx/dt
       pd_y = k_p*dy + k_d*dy/dt
       pd_z = k_p*dz + k_d*dz/dt
       action = [pd_x,pd_y,pd_z,fingers]
       observation, reward, done, info = env.step(action)
       object_position = info['object_position']
       if done:
           print("Episode finished after {} timesteps".format(t+1))
           break
env.close()

Development

  • clone the repo:
git clone https://github.com/mahyaret/gym-panda.git
cd gym-panda
  • Create/activate the virtual environment:
pipenv shell --python=python3.6
  • Install development dependencies:
pipenv install --dev
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].