Skip to main content

A OpenAI Gym Env for Rover with Arm

Project description

A OpenAI Gym Env for Rover with Arm Task - Move the cart near the table and pick up the object in the tray Reward = 1 (when the object is picked up) Reward = 0 (else)

Code with Sample Actions

import rover_arm
import gym
env = gym.make('rover-arm-v0', render_mode = 'rgb_array')

observation = env.reset()
done = False

while not done:
    action = env.action_space.sample()
    observation, reward, done, info = env.step(action)
    img = env.render()
    # print(img.shape)
    print(action, observation, reward)
    
print(reward, done, info)

Code to control the bot using keyboard in human mode (needs to be run in local)

import rover_arm.keyboard_control as kc

import rover_arm
import gym
env = gym.make('rover-arm-v0', render_mode = 'human')

keyboard_controller = kc.KeyboardAction()
keyboard_controller.start_listening()

observation = env.reset()
done = False

while not done:
    action = keyboard_controller.action
    observation, reward, done, info = env.step(action)
    # print(action, observation, reward)
# print(reward, done, info)

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

rover_arm-0.0.11.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

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

rover_arm-0.0.11-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file rover_arm-0.0.11.tar.gz.

File metadata

  • Download URL: rover_arm-0.0.11.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for rover_arm-0.0.11.tar.gz
Algorithm Hash digest
SHA256 49f0128a0393674d937b6342236c1d670329097489007261b79fa71bb42a2726
MD5 c089eb66e8067ed915dcc28ca31fcb8a
BLAKE2b-256 1ec812e5cb6172e46ab160095128681a65b5decae4b783adfd91bd97d8554e7a

See more details on using hashes here.

File details

Details for the file rover_arm-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: rover_arm-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for rover_arm-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e7dc552458f6ee05c594293fe25c868133170ad8cb186bfbeebb62307bd8e698
MD5 f9b5a63de9d34165142e80fbc8383063
BLAKE2b-256 52a50253a93f3ed8f65035d7d522a03e0d85d08730fbbb03c9ec831ade354a1d

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