A gymnasium environment for pushany.
Project description
Install Anypush
pip install anypush
Example
import gymnasium as gym
import gym_pushany
# 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("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.1.6.tar.gz
(17.1 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.1.6.tar.gz.
File metadata
- Download URL: gym_pushany-0.1.6.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6381b6d1c365270f26a52e9b812035f1e718c0f1fa3883515a7c2c6b63c7a4fd
|
|
| MD5 |
56fe24958ff735936468332793c87fb1
|
|
| BLAKE2b-256 |
4136789d7779e22ca4854a4d66fdc0c507e6ac4acf7dbef5ad3e3fbca1908b1f
|
File details
Details for the file gym_pushany-0.1.6-py3-none-any.whl.
File metadata
- Download URL: gym_pushany-0.1.6-py3-none-any.whl
- Upload date:
- Size: 20.6 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 |
198866fff07b0fd03720dfc602a8abf2f2d4b899e64be761d6276a93e7e8b0dd
|
|
| MD5 |
e18c4dffd4edb955b84112e509fdb7f5
|
|
| BLAKE2b-256 |
bccddd4bba5388e2ecd9b9a1b24b0b3a8a2fde5f6a11e2d8832a1b2847ea128e
|