Metadata-Version: 2.4
Name: kinematics-sim
Version: 1.1.0
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Manufacturing
Classifier: Natural Language :: English
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Typing :: Typed
Requires-Dist: numpy>=1.23
Requires-Dist: mcp>=2.3,<3 ; extra == 'mcp'
Requires-Dist: pandas>=2.0 ; extra == 'notebook'
Requires-Dist: matplotlib>=3.7 ; extra == 'notebook'
Requires-Dist: jupyter ; extra == 'notebook'
Requires-Dist: pytest==9.2.0 ; extra == 'test'
Requires-Dist: pandas>=2.0 ; extra == 'test'
Requires-Dist: matplotlib>=3.7 ; extra == 'test'
Requires-Dist: nbformat>=5.9 ; extra == 'test'
Requires-Dist: nbclient>=0.10 ; extra == 'test'
Requires-Dist: ipykernel>=6.29 ; extra == 'test'
Requires-Dist: mcp==2.3.0 ; extra == 'test'
Provides-Extra: mcp
Provides-Extra: notebook
Provides-Extra: test
License-File: LICENSE-APACHE
License-File: LICENSE-MIT
Summary: Physics of belt-driven gantries and parallel pickers: runs, analyses, sizing verdicts and catalogue sizing, from Python.
Keywords: simulation,kinematics,servo,motor sizing,gantry,delta robot,physics
Author: Nico Schuermann
License-Expression: MIT OR Apache-2.0
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Changelog, https://github.com/Sparkz400/KinematicsSimulation/blob/main/CHANGELOG.md
Project-URL: Documentation, https://sparkz400.github.io/KinematicsSimulation/docs/python.html
Project-URL: Homepage, https://github.com/Sparkz400/KinematicsSimulation
Project-URL: Issues, https://github.com/Sparkz400/KinematicsSimulation/issues
Project-URL: Repository, https://github.com/Sparkz400/KinematicsSimulation

# kinematics-sim

`kinematics_sim` runs a physics simulator of motion machines from Python: gantries, delta pickers, arms, parallel
kinematics on cylinders and on cables, crank and cam machines, with a servo drive model. Torque, speed and following error come out of a
physical model (belt sections as springs, LuGre friction, gearbox backlash, motor winding, cascaded drive), and the
module gives runs, the cycle analysis, sizing verdicts with error bands and a catalogue motor search as NumPy arrays and
pandas-ready tables. Every command of the command-line tool `sim-cli` is a function and gives the same numbers.

```bash
pip install kinematics-sim
```

```python
import kinematics_sim as ks
import pandas as pd

first = ks.machines()[0]["id"]                  # machines() lists every machine: [{"id": ..., "name": ...}, ...]
cfg = ks.Config(first)                          # a machine's default config
cfg["mass.payload_kg"] = 3.5                    # a value at a dotted path, as sim-cli --set
pd.DataFrame(ks.analyze(cfg))                   # the load per motor over one cycle
pd.DataFrame(ks.verdicts(cfg, bands=True))      # every check, with its band over the uncertain values
pd.DataFrame(ks.sizing(cfg, series="1FK2"))     # every catalogue motor on this cycle, passing first
```

One abi3 wheel per platform serves every CPython from 3.10 on; type stubs are included.

- Documentation: https://sparkz400.github.io/KinematicsSimulation/docs/python.html
- Source, issues and the other front ends (desktop app, CLI, OPC UA, FMI, browser): https://github.com/Sparkz400/KinematicsSimulation

One real machine has been measured, by others: a public ball screw test bench, replayed and fitted, with what matched
and what did not on the validation page of the documentation. For everything else friction, damping and stiffness
are estimates with stated bounds, so trends and comparisons hold, absolute numbers are as good as the estimates.

Licensed under either of MIT or Apache-2.0, at your option.

