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.3.tar.gz
(18.5 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.3.tar.gz.
File metadata
- Download URL: gym_pushany-0.0.3.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e61d4ca3e06de3c6ff88796ae9d1b7fda2fcfd42bd58a3230f397a36e9d0309
|
|
| MD5 |
307befbc85977df88dadc3aee1d436ec
|
|
| BLAKE2b-256 |
234bca0b6458337a220560eac29151cac0c04d3e3ae55e47ecff71f1a2d65f00
|
File details
Details for the file gym_pushany-0.0.3-py3-none-any.whl.
File metadata
- Download URL: gym_pushany-0.0.3-py3-none-any.whl
- Upload date:
- Size: 22.1 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 |
1564d2918cc3c32c3e0d3076f64c1dae50dcc1030900ea1266e8635fe663430d
|
|
| MD5 |
5367d11b90ac892bea71fe8d48203df3
|
|
| BLAKE2b-256 |
0d73b8ff3f20f6fe03c30276d9dece9ad38b21ce56c7265a93992eb19f20549a
|