Skip to main content

Generic Planar Robots

In this package, generic robot for simple tests are made available for gym environments.

Dependencies

This package depends on casadi for dynamics generation and gym. Dependencies will be installed through pip installation, see below. It uses the lightweight implementation for forward kinematics in casadi.

Installation

Clone the repository

git clone git@github.com:maxspahn/gym_envs_planar.git

virtual environment installation using poetry

If you are not familiar with poetry see Poetry Installation. Once poetry is installed you can run

poetry install

If you want the motion planning scenes

poetry install -E scenes

The virtual environment with everything installed is entered with

poetry shell

global installation via pip

pip3 install .

When obstacles are required, you must use

pip3 install ".[scenes]"

Switching

Environments can be created using the normal gym syntax. For example the below code line creates a planar robot with 3 links and a constant k. Actions are torques to the individual joints.

env = gym.make('nLink-reacher-tor-v0', n=3, dt=0.01, k=2.1)

Examples

For a constant controlled torque, the simulation is displayed below:

Example of torque controlled environment

Metadata

Release files for planarenvs 1.6.0

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

Source distribution (sdist)

Source distribution for planarenvs 1.6.0
File Size Uploaded Provenance Actions
planarenvs-1.6.0.tar.gz 12.1 kB Without provenance Details for planarenvs-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for planarenvs 1.6.0
File Interpreter ABI Platform Actions
planarenvs-1.6.0-py3-none-any.whl Python 3 none any Details for planarenvs-1.6.0-py3-none-any.whl

Total release size: 34.7 kB

Release files / planarenvs-1.6.0.tar.gz

Download URL planarenvs-1.6.0.tar.gz
Size 12.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ddf65c205b57459c5f3d9faa2e0dbf99941b48c27554f36adb480a9b68ac1805
BLAKE2b-256 checksum
How to use checksums
42d488ed16e585a9b2c502ece82f4873d5725b738ded0cddc49fe569886be3c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.22.3 CPython/3.10.16 Linux/6.8.0-1020-azure

Release files / planarenvs-1.6.0-py3-none-any.whl

Download URL planarenvs-1.6.0-py3-none-any.whl
Size 22.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baf622f37bc3cefcb02ab6c7d24ccb52ca3531cc715c8bf123df5a5c1bc86094
BLAKE2b-256 checksum
How to use checksums
928506f231b282f26b75ca353cbfd93f88ca3d8df2670c8db8f07f88142f615d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.22.3 CPython/3.10.16 Linux/6.8.0-1020-azure

Security for planarenvs 1.6.0

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