Skip to main content

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


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.5.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gym_pushany-0.0.5-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file gym_pushany-0.0.5.tar.gz.

File metadata

  • Download URL: gym_pushany-0.0.5.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

Hashes for gym_pushany-0.0.5.tar.gz
Algorithm Hash digest
SHA256 01a01865ba159486d8daad08eb325ac47159a0130fb73a15d9661b90e1fc39c1
MD5 e9ef49954a9b5ecbd644a35e118cadc0
BLAKE2b-256 fb9da3f33f9768613c7e75508a51b4ab32a0e0d27ce8e24c6cf8f884d4122740

See more details on using hashes here.

File details

Details for the file gym_pushany-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: gym_pushany-0.0.5-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

Hashes for gym_pushany-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2c8d60bcc62588df777a32d82a5d4608098f9f53f434f44ecab093d1993d65
MD5 790cd32a997bd23b9e1e6eb67e7f9f1b
BLAKE2b-256 83291e75b616ce8bc4549331a497324c32e18d0fb707b4e3453e0d85f421bcff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page