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.10.tar.gz (18.7 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.10-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gym_pushany-0.0.10.tar.gz
  • Upload date:
  • Size: 18.7 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.10.tar.gz
Algorithm Hash digest
SHA256 67752b6050cb42e20bd4e4e8b40ed2aa4e5ee43dda2c5fc69d1ffe4f8155807f
MD5 204217a3cb041896ab405527854a276c
BLAKE2b-256 eda5f0fee446df5f58f0ca457444c8820911dca37002c86f756735fe6e2dfd7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gym_pushany-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 22.3 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 eec266eacfada41faf871e03f36b67e7b99ddcc8eadad514d57a1ac53facf9d4
MD5 b71d475c61610ad6b5dfa3f519f22a5a
BLAKE2b-256 1ec77a83cd31dc97c363714f8be5580972cfa3090a8715f0b2b2fefbe0c7bcda

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