Skip to main content

Gymnasium environments for a low-cost robot, repackaged as youzi_robot.

Project description

youzi-robot

License Python Version

youzi-robot provides Gymnasium environments for simulated applications of the Low Cost Robot platform. This project is adapted from the original gym-lowcostrobot repository.

Installation

pip install youzi-robot

Usage

import gymnasium as gym
import youzi_robot

env = gym.make("PickPlaceCube-v0", render_mode="human")
observation, info = env.reset()

for _ in range(1000):
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info = env.step(action)
    if terminated or truncated:
        observation, info = env.reset()

env.close()

Available Environments

  • LiftCube-v0
  • PickPlaceCube-v0
  • PushCube-v0
  • ReachCube-v0
  • StackTwoCubes-v0
  • PushCubeLoop-v0

Headless Mode

export MUJOCO_GL=osmesa
export DISPLAY=:0

Training with RL Zoo3

python -u -m rl_zoo3.train --algo tqc --env ReachCube-v0 --gym-packages youzi_robot -conf examples/rl_zoo3_conf.yaml --env-kwargs observation_mode:'"both"' -f logs

Development

ruff format youzi_robot examples tests setup.py --line-length 127
pytest

Build & Publish

python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
python -m twine upload dist/*

Project Links

License

This project is licensed under the Apache 2.0 License. See LICENSE.

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

youzi_robot-0.1.0.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

youzi_robot-0.1.0-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file youzi_robot-0.1.0.tar.gz.

File metadata

  • Download URL: youzi_robot-0.1.0.tar.gz
  • Upload date:
  • Size: 2.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for youzi_robot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58f629d32f6590f8c6514348d692ddfc1d6f3d54ec09912aa5ee373324752fd0
MD5 c3b60f0aa4460b8ef1679de1d6ecbe44
BLAKE2b-256 268f369b67cf14dd77ce6bd76687d47217b9c3197cba6fa7a02da33a311b43dc

See more details on using hashes here.

File details

Details for the file youzi_robot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: youzi_robot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.5

File hashes

Hashes for youzi_robot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fdda7836008a00c32b88185de6b7f4e82b8c57b7f5a1c7add1673d7a34ab351
MD5 2c524ff6fad7d56754f1a83471c2044c
BLAKE2b-256 b3c1a0cadbfa9b54d243e263e0bbe21605bad8b7d31e25a7c48acd81bd7242d6

See more details on using hashes here.

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