Skip to main content

A gymnasium environment for pushany.

Project description

Install Anypush

pip install anypush

Example

import gymnasium as gym
import gym_pushany

object_name = 'ellipse'  # 예시로 'ellipse'를 사용
use_obstacles = True     # 예시로 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


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.1.tar.gz (18.3 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.1-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gym_pushany-0.0.1.tar.gz
  • Upload date:
  • Size: 18.3 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.1.tar.gz
Algorithm Hash digest
SHA256 3ac12883fefe48eead3f8f1106bc6e90ea0e0b507d869a4e885457b9bd9a10ac
MD5 6c4333818120aa9687e4d68e7306e2d7
BLAKE2b-256 ee158325e794a4aa642156681ea0c3836af48ae94d11658c4994aaaa5056ee3c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gym_pushany-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f74c7d563c1c8e01ebd3ae5e422b08f9b11bb2f47413e12f3d06cfbb30b4857
MD5 36ee29367c75e66e4a5e59bc640a8dcd
BLAKE2b-256 4994dbe264d992c6da51a94b3cdaf91c85a74d158b16f9a8787a2d837062a1ab

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