Skip to main content

Default template for PDM package

Project description

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

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

planarenvs-1.6.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

planarenvs-1.6.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file planarenvs-1.6.0.tar.gz.

File metadata

  • Download URL: planarenvs-1.6.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.10.16 Linux/6.8.0-1020-azure

File hashes

Hashes for planarenvs-1.6.0.tar.gz
Algorithm Hash digest
SHA256 ddf65c205b57459c5f3d9faa2e0dbf99941b48c27554f36adb480a9b68ac1805
MD5 20523f408364c26286598ef6f8edb642
BLAKE2b-256 42d488ed16e585a9b2c502ece82f4873d5725b738ded0cddc49fe569886be3c9

See more details on using hashes here.

File details

Details for the file planarenvs-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: planarenvs-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.22.3 CPython/3.10.16 Linux/6.8.0-1020-azure

File hashes

Hashes for planarenvs-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baf622f37bc3cefcb02ab6c7d24ccb52ca3531cc715c8bf123df5a5c1bc86094
MD5 a45a5abdb98c568c28800e944a6530c3
BLAKE2b-256 928506f231b282f26b75ca353cbfd93f88ca3d8df2670c8db8f07f88142f615d

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