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.2.tar.gz
(16.9 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.2.tar.gz.
File metadata
- Download URL: gym_pushany-0.1.2.tar.gz
- Upload date:
- Size: 16.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd90782edd7f8443490092aa02b01711adf6104021acbee8c9775dd9b92730fa
|
|
| MD5 |
c1a4bf8e5a5605ed0f8b279b091cdfd4
|
|
| BLAKE2b-256 |
5d1b5c5b99867285c976435f45e3ffc9468ab73bc7594a3084ba609046470d9e
|
File details
Details for the file gym_pushany-0.1.2-py3-none-any.whl.
File metadata
- Download URL: gym_pushany-0.1.2-py3-none-any.whl
- Upload date:
- Size: 20.4 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 |
4fea0777d6448fd2da1723e57fa066c3465383a80e5805d5e21aa72e3f34a7c5
|
|
| MD5 |
bdbf29a74bd8e1f8711e443bc02f9acb
|
|
| BLAKE2b-256 |
a27e70d30773ef6d62181cddf10c222372ef0638d8b7bef228fcd09a11037d50
|