Skip to main content

gym-drake-lca

A gym environment for Low-Cost Robot Arm in Drake.

Installation

Create a virtual environment with Python 3.10 and activate it, e.g. with miniconda:

conda create -y -n gym-drake-lca python=3.10 && conda activate gym-drake-lca

Install gym-drake-lca:

pip install gym-drake-lca

Quickstart

# example.py
import imageio
import gymnasium as gym
import numpy as np
import gym_drake_lca

env = gym.make("LiftCube-v0")
observation, info = env.reset()
frames = []

N = 100
for i in range(N):
    env.reset()
    action = env.action_space.sample()
    observation, reward, terminated, truncated, info = env.step(action)
    image = env.render()
    frames.append(image)

    if terminated or truncated:
        observation, info = env.reset()

env.close()
imageio.mimsave("example.mp4", np.stack(frames), fps=25)

Contribute

Instead of using pip directly, we use poetry for development purposes to easily track our dependencies. If you don't have it already, follow the instructions to install it.

Install the project with dev dependencies:

poetry install --all-extras

Follow our style

# install pre-commit hooks
pre-commit install

# apply style and linter checks on staged files
pre-commit

Acknowledgment

These instrutions are adapted from gym-aloha This project is adapted from gym-lowcostrobot

Metadata

Release files for gym-drake-lca 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gym-drake-lca 0.0.11
File Size Uploaded Provenance Actions
gym_drake_lca-0.0.11.tar.gz 2.4 MB Without provenance Details for gym_drake_lca-0.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gym-drake-lca 0.0.11
File Interpreter ABI Platform Actions
gym_drake_lca-0.0.11-py3-none-any.whl Python 3 none any Details for gym_drake_lca-0.0.11-py3-none-any.whl

Total release size: 4.9 MB

Release files / gym_drake_lca-0.0.11.tar.gz

Download URL gym_drake_lca-0.0.11.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
d435c94b8b51cf5be2b235c402524936d5c4c96f2bbfe0250420b038dadbdefc
BLAKE2b-256 checksum
How to use checksums
4b399c66534e92aee9e223090a1bd9dd90b995bb19329a0db5c5d27759796f15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.4

Release files / gym_drake_lca-0.0.11-py3-none-any.whl

Download URL gym_drake_lca-0.0.11-py3-none-any.whl
Size 2.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c1eb4be5f376b58594d0a265c3d06c2ef0944b91e2872faa93c0a255628b9f08
BLAKE2b-256 checksum
How to use checksums
db99bde2cd0e89ca6ecbcdfe9beff3df65d46eeb00872b9bf5a0f22da4498341
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.4

Security for gym-drake-lca 0.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page