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.9.tar.gz
(18.6 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.9.tar.gz.
File metadata
- Download URL: gym_pushany-0.0.9.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a34ce733d6a20824bf0ef389d042eb643449dfb91f13885d3cbd47e4ff2ade
|
|
| MD5 |
a0dbd4d577aff1ed2376f0944b0263e9
|
|
| BLAKE2b-256 |
5028b69e13ade1db3a162999c55bebd68723e9d8704759c2ebb2ee666598fe1c
|
File details
Details for the file gym_pushany-0.0.9-py3-none-any.whl.
File metadata
- Download URL: gym_pushany-0.0.9-py3-none-any.whl
- Upload date:
- Size: 22.2 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 |
c8d1dc03b25d7b762a256574009b5315c591da9b85444bf507ddd410d0c8f194
|
|
| MD5 |
343624b07c0df499ecd89bfea2cba152
|
|
| BLAKE2b-256 |
5219291c55c9f312abc2bc6f52b8927c203bb3f0d5b0917e5fe2b05139ba172f
|