A gymnasium environment for pushany.
Project description
Install Anypush
pip install anypush
Example
import gymnasium as gym
import gym_pushany
object_name = 'ellipse' # 예시로 'ellipse'를 사용
use_obstacles = True # 예시로 True를 사용
env = gym.make("pushany/PushAny-v0", object_name=object_name, use_obstacles=use_obstacles)
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.2.tar.gz
(18.3 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.2.tar.gz.
File metadata
- Download URL: gym_pushany-0.0.2.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b5c5d56d01fa23860d04ca2ac5763cc35463973e02359dfa238d4ee43602d44
|
|
| MD5 |
19c18d9869ec8b2217117d5ef4a0d5c5
|
|
| BLAKE2b-256 |
fdc49a329a0ebb88505575827caa8699770faa4db55a341c761af1646d5ae2c9
|
File details
Details for the file gym_pushany-0.0.2-py3-none-any.whl.
File metadata
- Download URL: gym_pushany-0.0.2-py3-none-any.whl
- Upload date:
- Size: 21.9 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 |
7e7b6436846031165f27dfefe7c372c9cf8145c189792e4a6140594c7ff02c02
|
|
| MD5 |
8621defb4ee0bea156d18533db5fd56d
|
|
| BLAKE2b-256 |
ac8b929a773e31f0441ed79a6960657823e0a4740c60a0dfab0c815b0c7f6753
|