Skip to main content

A gym environment for quadruped robots using MuJoCo physics engine.

Project description

Mujoco Gym Environment for quadupedal legged locomotion

PyPI version Python Version

Install Instructions

  pip install gym-quadruped
  # or install locally
  cd <gym-quadruped root dir> 
  pip install -e . 

Usage Instructions

from gym_quadruped.quadruped_env import QuadrupedEnv

robot_name = "mini_cheetah"   # "aliengo", "mini_cheetah", "go2", "hyqreal", ...
scene_name = "flat"  # perlin | random_boxes
state_observables_names = tuple(QuadrupedEnv.ALL_OBS)  # return all available state observables

env = QuadrupedEnv(robot='mini_cheetah',
                   scene=scene_name,
                   base_vel_command_type="human",  # "forward", "random", "forward+rotate", "human"
                   state_obs_names=state_observables_names,  # Desired quantities in the 'state'
                   )
obs = env.reset()

env.render()
for _ in range(10000):
    action = env.action_space.sample() * 50  # Sample random action
    state, reward, is_terminated, is_truncated, info = env.step(action=action)

    if is_terminated:
        pass
        # Do some stuff
    env.render()
env.close()

See also examples directory.

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

gym_quadruped-1.1.3.tar.gz (36.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gym_quadruped-1.1.3-py2.py3-none-any.whl (37.2 MB view details)

Uploaded Python 2Python 3

File details

Details for the file gym_quadruped-1.1.3.tar.gz.

File metadata

  • Download URL: gym_quadruped-1.1.3.tar.gz
  • Upload date:
  • Size: 36.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for gym_quadruped-1.1.3.tar.gz
Algorithm Hash digest
SHA256 46932c47a57efceb35ee73cb530d7c65779359a7415bdf04dfb4ca1f1a0c72a6
MD5 29a190e44055bcac630d5d1098693bbd
BLAKE2b-256 8a00280426ac4e2ecdbc5e52b6b7a6b1d19c48aac3094f02c599b00c28f231d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for gym_quadruped-1.1.3.tar.gz:

Publisher: publish2pypi.yaml on iit-DLSLab/gym-quadruped

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gym_quadruped-1.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: gym_quadruped-1.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 37.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for gym_quadruped-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0be8e403ecf6388c8b30b9a5f665287a8bc4d7ff5ea07a61fc89fcf004a5a999
MD5 98040d5e9855f993b5949f241e9a8035
BLAKE2b-256 e44786e9eebcc03ba895e56bb28b79a5aad1ccae1938b3c1679fe60fa7b0a6f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gym_quadruped-1.1.3-py2.py3-none-any.whl:

Publisher: publish2pypi.yaml on iit-DLSLab/gym-quadruped

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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