Gymnasium environments for a low-cost robot, repackaged as youzi_robot.
Project description
youzi-robot
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-v0PickPlaceCube-v0PushCube-v0ReachCube-v0StackTwoCubes-v0PushCubeLoop-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
- Homepage: https://github.com/xxunhao/youzi-robot
- Repository: https://github.com/xxunhao/youzi-robot
- Issues: https://github.com/xxunhao/youzi-robot/issues
License
This project is licensed under the Apache 2.0 License. See LICENSE.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58f629d32f6590f8c6514348d692ddfc1d6f3d54ec09912aa5ee373324752fd0
|
|
| MD5 |
c3b60f0aa4460b8ef1679de1d6ecbe44
|
|
| BLAKE2b-256 |
268f369b67cf14dd77ce6bd76687d47217b9c3197cba6fa7a02da33a311b43dc
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fdda7836008a00c32b88185de6b7f4e82b8c57b7f5a1c7add1673d7a34ab351
|
|
| MD5 |
2c524ff6fad7d56754f1a83471c2044c
|
|
| BLAKE2b-256 |
b3c1a0cadbfa9b54d243e263e0bbe21605bad8b7d31e25a7c48acd81bd7242d6
|