Skip to main content

deltakin

Forward and inverse kinematics for 3-DOF Delta parallel robots, in pure Python (no dependencies).

Equations follow R. L. Williams II, The Delta Parallel Robot: Kinematics Solutions (Ohio University).

Install

pip install .          # from this folder

Usage

from deltakin import DeltaRobot, UnreachableError

robot = DeltaRobot(Sb=567, Sp=76, L=524, l=1244)    # lengths in mm

angles = robot.inverse(0, 0, -900)                   # degrees -> about (-20.55, -20.55, -20.55)
x, y, z = robot.forward(*angles)                     # -> (0, 0, -900)

robot.is_reachable(0, 0, 0)                          # False

try:
    robot.inverse(0, 0, 0)
except UnreachableError as err:
    print(err)                                       # clear error, no fake angles

primary, alternate = robot.inverse_all(100, -50, -1000)   # both solutions
robot.inverse_many([(0, 0, -900), (50, 20, -1000)])        # batches
DeltaRobot(567, 76, 524, 1244, angle_unit="rad")           # radians instead of degrees

Conventions

  • Origin at the centre of the base, z up (a hanging platform has negative z).
  • Leg 1 on the -y side; legs 2 and 3 on the +x and -x sides.
  • Lengths use any single unit; angles default to degrees.
  • inverse(..., branch="primary") returns the usual elbow-out solution; "alternate" returns the other one.

Tests

PYTHONPATH=src python -m unittest discover -s tests -v

The test suite includes round trips (inverse then forward, and forward then inverse), the example from the Williams paper, and a mirror-symmetry check.

Author

Salim Toumache, mechatronics engineer: salimtoumache@gmail.com

License

MIT

Metadata

Release files for deltakin 0.1.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 deltakin 0.1.0
File Size Uploaded Provenance Actions
deltakin-0.1.0.tar.gz 7.0 kB Without provenance Details for deltakin-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 13.7 kB

Release files / deltakin-0.1.0.tar.gz

Download URL deltakin-0.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
23bf706fbecd48c56350f2c464a45321f8247c700d74111fb1746125ff41be69
BLAKE2b-256 checksum
How to use checksums
89282a7e3159cb4deaeaec45878860145c26fc20d6f78f3ea4ee11082b83d045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.3

Release files / deltakin-0.1.0-py3-none-any.whl

Download URL deltakin-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2482784572706ca8fcab5123ce961285288d16f6dabe1bd54ba03af46e302d45
BLAKE2b-256 checksum
How to use checksums
91cc63067da06e5ca3e37198433c8c93bc2a283a32ae3d6b17ed97194cd939ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.3

Security for deltakin 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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