Skip to main content

Misc utilities to work with robot model formats

Project description

This is the readme file of the "Robot Model Tools" Python package.

The modules in the robmodel package allow to model some aspects of articulated robots, such as connectivity, numbering scheme of the links, attached frames, geometry, etc.

The rmt package implements a command line program that operates on robot models, such as the URDF or the KinDSL formats. See

rmt --help

for a list of the available sub commands.

You can try the program without installing this repository (although you still need to install the dependencies):

cd src/
./runner.py --help

Code documentation

More information about the packages and the modules of this project is available in the source code.

You can generate e.g. html documentation using pdoc. For example:

cd src/
pdoc --no-show-source -o /tmp/docs/rmt rmt/ robmodel/

Installation

pip install rmt

Alternatively, install from the source code:

git clone <repo> rmt    # replace <repo> with the right URL
cd rmt/
pip install .           # should also install the dependencies available in PyPI

Virtual environment

You might want to install the tool and its dependencies in an isolated virtual environment. If so, run the following before the installation procedure:

mkdir myvenv && python3 -m venv myvenv
source myvenv/bin/activate  # may need to pick another script depending on your shell
#pip install wheel           # may also required to set up the env

Dependencies

The following libraries are used by this project:

  • kgprim kinematics/geometric primitives

  • NetworkX, for the connectivity model, which is a graph

  • NumPy

Optionally:

  • textX, for the KinDSL format importer

  • PyYAML, to import YAML models

  • Mako, for the export of models to other formats (which involves text generation)

  • PyGraphviz, required only by the DOT file generator command of the rmt tool

Testing

Verify your installation by moving to the test/ folder and running

python ur5.py

License

Copyright © 2019-2022, Marco Frigerio

Released under the BSD 3-clause license. See the LICENSE file for additional information.

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

robot_model_tools-0.2.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

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

robot_model_tools-0.2.0-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file robot_model_tools-0.2.0.tar.gz.

File metadata

  • Download URL: robot_model_tools-0.2.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for robot_model_tools-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a289e86f89d3c308fa1eb7f5579168b686214630fcbdf5cf0fbae66a6982472b
MD5 4cf76b28b954188c3001459959d057f2
BLAKE2b-256 7d62a707293f20e1912135bcd88dbaece8ccb749ea04671227b19801901cfd6e

See more details on using hashes here.

File details

Details for the file robot_model_tools-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robot_model_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d27d375d31bb4853e92a83b0c02ebaa1cf81d421c795ca9461605669a530518
MD5 07bceabf8bbaf537db74e7c297a20c23
BLAKE2b-256 ab448d65e40b8d56da4d502edfe1df8c8d5a22a0b7b16ee989eac20a497f06f2

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