A gymnasium environment for pushany.
Project description
Install Anypush
pip install anypush
Example
import gymnasium as gym
import gym_pushany
<<<<<<< HEAD
# OBJECT_NAME_LIST = [
# 't',
# '0',
# '1',
# '2',
# '3',
# '4',
# '5',
# '6',
# '7',
# '8',
# '9',
# 'ellipse',
# 'rectangle',
# 'reg3',
# 'reg4',
# 'reg5',
# 'reg6',
# 'reg7',
# 'reg8',
# 'reg9',
# 'reg10'
# ]
object_name = 'ellipse'
use_obstacles = True
env = gym.make("anypush/AnyPush-v0", object_name=object_name, use_obstacles=use_obstacles)
=======
object_name = 'ellipse' # 예시로 'ellipse'를 사용
use_obstacles = True # 예시로 True를 사용
env = gym.make("pushany/PushAny-v0", object_name=object_name, use_obstacles=use_obstacles)
>>>>>>> 6ff4299 (change name to gym-pushany)
observation, info = env.reset()
for _ in range(1000):
action = env.action_space.sample()
observation, reward, terminated, truncated, info = env.step(action)
image = env.render()
print(f'terminated: {terminated}, truncated: {truncated}')
if terminated or truncated:
observation, info = env.reset()
env.close()
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
gym_pushany-0.0.14.tar.gz
(18.7 kB
view details)
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 gym_pushany-0.0.14.tar.gz.
File metadata
- Download URL: gym_pushany-0.0.14.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25e9339670ab2d7d20a687c84da23d6fd2534fe9a6a7c844d7db7ad207cefd24
|
|
| MD5 |
09af26ad41df0927ad51ce84ed5275a7
|
|
| BLAKE2b-256 |
e862de17c9ce638c201ec401c8f0b7d81ea49a01f157b6d6ed2801a27336c3c3
|
File details
Details for the file gym_pushany-0.0.14-py3-none-any.whl.
File metadata
- Download URL: gym_pushany-0.0.14-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
506776a80a29be225e663e0b5efc28e8ec7339dfd64b31e7fde40841c537d6b2
|
|
| MD5 |
db8a29e28e0571f964f62357ae9717a2
|
|
| BLAKE2b-256 |
a2fda1a568e767e6b509260f5e9277f8214e9163804fc1898f5be4cfbd3d3cf6
|