Skip to main content

Locomotion HRL envs in pybullet

Project description

Hierarchical Reinforcement envs in pybullet

This package was created because all of the HRL locomotion envs are only available in mujoco. This is an implementation of as many as possible in pybullet.

Install

pip install pybullet hrl_pybullet_envs
This project requires pybullet-gym which must be installed along side this package.

Envs:

  • AntGatherBulletEnv-v0
  • AntMazeBulletEnv-v0
  • AntMjBulletEnv-0
  • AntFlagrunBulletEnv-v0
  • PointGatherBulletEnv-v0

Example

Also see this notebook

import hrl_pybullet_envs
import gym
import numpy as np

env = gym.make('AntGatherBulletEnv-v0')
env.render()
ob = env.reset()
tot_rew = 0

for i in range(1000):
  # Take random actions
  ob, rew, done, _ = env.step(np.random.uniform(-1, 1, env.action_space.shape))
  tot_rew += rew

  if done: break

print(f'Achieved total reward of: {tot_rew}')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hrl_pybullet_envs-0.2.37.tar.gz (30.7 kB view hashes)

Uploaded Source

Built Distribution

hrl_pybullet_envs-0.2.37-py3-none-any.whl (41.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page