linkage-synthesis

Installation
SKILL.md

Linkage synthesis (LinkD method)

Paper: Y. Jadhav, A. Barati Farimani, LinkD: AutoRegressive Diffusion Model for Mechanical Linkage Synthesis, arXiv:2601.04054. LinkD builds a mechanism one joint at a time with a causal transformer plus a DDPM, checks every new node kinematically, and resamples a failing node up to K times. Node-level retry raised its valid-generation rate from 29.4% (one-shot) to 99.6%.

What's bundled. The paper's representation, validation, kinematics and metric are reproduced exactly (linkage.py). The trained model isn't public, so synth.py replaces the diffusion sampler with optimization-driven proposals under the same discipline: build node by node, validate the full revolution, use bounded retries, and keep only improvements. Tell the user which generator was used.

Setup: pip install numpy scipy matplotlib. S=scripts.

Mechanism format

{"nodes": [[x, y], ...], "fixed": [0, 2], "edges": [[0,1],[1,3],[2,3],[1,4],[3,4]],
 "motor": [0, 1], "effector": 4}

The motor link is the crank: node motor[1] rotates a full turn about fixed node motor[0]. Every other moving joint must connect to exactly two already-known joints (dyadic assembly), so the mechanism has one degree of freedom.

Installs
23
GitHub Stars
21
First Seen
Nov 5, 2026