Kimech

Planar mechanism kinematics for Python.

Kimech models planar rigid-body mechanisms declaratively and solves position, velocity, and acceleration kinematics for fully prescribed planar mechanisms with revolute and prismatic joints, including Multi-DOF systems.

The public workflow is centered on four concepts:

  1. build a Mechanism;

  2. prescribe independent coordinates with one or more KinematicDriver objects;

  3. call solve();

  4. inspect the resulting KinematicSolution.

from kimech import KinematicDriver, Mechanism, solve

mechanism = Mechanism("example")
# ... add links, points, and joints ...

driver = KinematicDriver(
    crank_joint,
    position=positions,
)

solution = solve(
    mechanism,
    drivers=driver,
    initial_guess=initial_guess,
)

The unreleased 0.7.0 development branch supports multiple simultaneous independent drivers for planar R/P mechanisms. Dynamics, automatic driver selection, branch enumeration, pseudo-arclength continuation and continuous motion-law objects remain outside this release.