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 deltakin

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.

Open Source & Contributions

deltakin is an open-source project released under the MIT License.

Contributions from the community are welcome! You are free to use, modify, extend, and improve the library to support your own projects and research.

Whether you are a robotics researcher, engineer, student, or developer, you are welcome to contribute by:

  • Reporting bugs and suggesting improvements.
  • Adding new features and functionalities.
  • Improving documentation and examples.
  • Optimizing kinematic algorithms.
  • Sharing ideas and applications.

Feel free to explore the source code, fork the repository, and submit your contributions through pull requests.

GitHub Repository:
https://github.com/salimtoumache/deltakin


Your contributions and feedback are greatly appreciated


Author

Salim Toumache, mechatronics engineer: salimtoumache@gmail.com

License

MIT

Metadata

Release files for deltakin 0.1.1

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.1
File Size Uploaded Provenance Actions
deltakin-0.1.1.tar.gz 7.8 kB Without provenance Details for deltakin-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 14.9 kB

Release files / deltakin-0.1.1.tar.gz

Download URL deltakin-0.1.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
17748efa3ff0c346320f039ce6e28195ac3196bc62decb9d448643fdf9c119ea
BLAKE2b-256 checksum
How to use checksums
ef6853480810f38e612bde71e13aa67e64dc6c880cb4dfe803fad78c5d4fec1b
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.1-py3-none-any.whl

Download URL deltakin-0.1.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7b1f5e6b4965fdcaafcc0106a5b51a2d956bbfda1ec1eb2855a5246f31280c2
BLAKE2b-256 checksum
How to use checksums
364ccbff27dc4f3184753084d839e6985df3c9359c3905eb6b460d11bda8ed6a
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.1

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.1 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