51508a8ded147b4d0d08c402e94c7bf7a2e96907
Walker Linkage Web Simulator
2D browser simulator of the walker linkage from linkage.svg, implemented with HTML Canvas and pure kinematics.
Features
- One-side linkage solve from fixed bar lengths and crank angle.
- Duplicated opposite side with 180° phase offset.
- Color mapping aligned with the drawing:
- pivots = yellow
- crank = green
- links = black
- body = red
- Play/pause, reset, speed slider, angle scrubber.
- Foot trajectory traces for both sides.
- Diagnostics panel with closure error and fallback counters.
File layout
index.html: Canvas + control panel shellstyles.css: App layout and stylingsrc/main.js: bootstrap, animation loop, integrationsrc/math.js: vector math and circle intersectionsrc/geometry.js: normalized points and derived lengthssrc/kinematics.js: mechanism solve for near/far sidessrc/renderer.js: Canvas rendering pipelinesrc/trace.js: trajectory bufferssrc/ui.js: controls + diagnostics text
Run
Any static server is enough.
Example with Python:
python3 -m http.server 8676
Then open:
http://localhost:8676/
Model notes
- v1 is pure kinematic visualization.
- No collision/ground dynamics and no body translation.
- Side B is driven by
theta + pi. - Lower branch of each circle-circle intersection is selected to maintain leg-down posture.
Description
Languages
JavaScript
57.3%
Python
31.1%
CSS
5.1%
Shell
4.3%
HTML
2.2%