Metadata-Version: 2.4
Name: deltakin
Version: 0.1.1
Summary: Forward and inverse kinematics for 3-DOF Delta parallel robots.
Author-email: Salim Toumache <salimtoumache@gmail.com>
License-Expression: MIT
Keywords: delta robot,parallel robot,kinematics,robotics,mechatronics
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# 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

```bash
pip install deltakin
```

## Usage

```python
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

```bash
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
