← All projectsGitHub
Digital twins & sim-to-real

Does a twin with no gravity certify PD gains that sag, or cannot hold a pose at all?

research/gravity-twin

A gravity-free twin certifies PD with zero error; the real pendulum sags to the root of kp(θ*−θ)=g sin θ (0.18 rad at kp=4, falling only as ~1/kp), cannot hold upright unless kp>g (basin 0.12 rad at 1.02g), and a 10%-off gravity feedforward leaves a sag linear in the error.

5 tests

What it found

A pendulum under PD control u=kp(θ*−θ)−kdω; the twin omits gravity and promises zero error at every gain. The real hold sags to the root of kp(θ*−θ)=g sinθ nearest the target (RK4 agrees to six digits; 0.182 rad at kp=4, θ*=1), falling only as ≈1/kp. Holding upright is stable iff kp>g: below it the arm settles 0.2–1.9 rad away, and just above it the basin is tiny (0.116 rad at 1.02g, 0.519 at 1.05g, none below 3 rad from 1.1g; numerical scan). A gravity feedforward with calibration error leaves a sag linear in (g(g−gff)minus;gff) (±0.0185 rad at ±10%). Companion to the lag and flex twins. Stylised: one rigid joint, noiseless, no friction.

A figure from its own output

Figure produced by research/gravity-twin: sag_vs_kp
gravity-twin/experiments/sag_vs_kp.svg, written by the project's own experiment code.

Paper, code and results

More in Digital twins & sim-to-real

All 164 Digital twins & sim-to-real projects →

Other research topics

Proper scoring & elicitation28Effort & peer prediction9Verification games & slashing19Detection & tolerances14Markets as routers13Prediction-market design9Paying contributors8Decentralised training systems23Digital twins & sim-to-real164LLM chip design loops40Robot manufacturing loops53Ambient AI assistant46Self-replicating manufacturing34Simulation-first design64Engineered clothing45Task-specific AI accelerators40Algorithmic chip-design loops42Open-source purpose-built robots44The software-engineering loop43Adversarial human imitation41Open-source residential construction41Autonomous multi-angle capture34Sensing, imaging and 3D31Energy supply and dense energy storage39Robot societies among people31Agentic co-design of low-cost robots27Laundry-hanging robots25Machine learning on qualitative data23Robots on the building site27Civilizations & group psychology1History & human sciences1

Produced with AI assistance (Claude). Results are from the code in this repository and are simulated or stylised unless the abstract says otherwise; nothing here implies affiliation with or endorsement by any lab, researcher or company cited. MIT licensed.