Skip to main content

PyTorch implementation of Modern Robotics: Mechanics, Planning, and Control

Project description

PyTorch Modern Robotics (pytorch_mr)

PyTorch implementation of the routines from Modern Robotics: Mechanics, Planning, and Control, aligned with the NumPy modern_robotics reference in packages/Python.

Install (global)

pip install pytorch-mr

Install (local / editable)

From this directory (packages/PyTorch):

pip install -e .

Dependencies are declared in pyproject.toml (numpy, torch).

Import

import pytorch_mr as pmr
# or
from pytorch_mr.core import MatrixExp3, FKinBody

Tests (NumPy parity)

Install the reference modern_robotics (local tree or PyPI) and pytest:

pip install -e ../Python   # local reference
# or
pip install modern_robotics
pip install pytest

From packages/PyTorch (uses [tool.pytest.ini_options] pythonpath = ["src"]):

cd packages/PyTorch
python -m pytest tests -q

From packages/ with explicit PYTHONPATH:

cd packages
PYTHONPATH=PyTorch/src:Python python -m pytest PyTorch/tests -q

Chapter summary:

cd packages
PYTHONPATH=PyTorch/src:Python python PyTorch/tests/run_tests_by_chapter.py

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

pytorch_mr-0.0.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

pytorch_mr-0.0.1-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file pytorch_mr-0.0.1.tar.gz.

File metadata

  • Download URL: pytorch_mr-0.0.1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pytorch_mr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 13d3a7f8ad77700c96f79adcc131abcb7a33cd1526853f3d1acf235724c38308
MD5 bd4e68683ba57fc5103ddf0b5c8d9d18
BLAKE2b-256 f04ba941dc0437af3d9c02b0bbcd0fd5a560ede22296b2a838d3237b3cc3220f

See more details on using hashes here.

File details

Details for the file pytorch_mr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pytorch_mr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for pytorch_mr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ffc154cfaadb61ff1a1071dd4b6c1d50213a7d9377b4e8e50216f51a3ddca1a2
MD5 bef89b6acdf13de1f5175467b7541d3a
BLAKE2b-256 772b526136d9089a756b9789a27c7ea7ad46680bab3acd746510ffa17320e47b

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