Crease Lab
Fold paper in a simulator, teach it to crawl, give it a neck so it can change shape, then build the real robot. A bar-and-hinge model of origami you can fold by hand, a design search, folding-only gaits for a Kresling crawler, a four-shape transformer with a mission to test it, and a printable template with Arduino code. First time? Follow the tutorial.
Design a crease pattern, fold it with a bar-and-hinge simulator, and let an optimizer search the geometry.
Pattern
Geometry
Actuation
Material
Bars resist stretching. Hinges resist bending at creases and across facets (panels).
Robot body
A Kresling tube lying on its side. Rigid plates separate the cells, four cables run the full length through an eyelet in every plate, and each end plate stands on a foot pad. Nothing rolls and nothing spins: all motion comes from folding.
Transformer
The Move crawler with a neck. Kresling cells make the body (good at getting shorter), a plastic hinge with its own servo makes the neck (good at turning), and one more Kresling cell is the head, with a camera in its end plate. The shoulder sits on a long sled that carries the battery.
Lifting the head pushes the shoulder back the other way. The long sled and the battery resist that: at the lightest setting the shoulder tips back about 4°, from the middle setting up it stays flat.
Body shape
Robot to build
Get the files
The kit holds the three template pages, the Arduino sketch, the parts list, the gait and a README with every step.
Feet
Fold module
The basic electric fold: two paper panels and one crease. Something pulls across the inside of the crease to fold it, and a rubber band on the outside opens it again. Pick what does the pulling.
Hinge
Mounting
Each puller keeps its own mounting: a wire wants short leverage and a strong band, a spring wants a weak band.
Crease pattern
Click a crease to select it.
Optimize the design
CMA-ESCharacterize
FOLD file
Open a crease pattern made elsewhere: FOLD (Origami Simulator, Rabbit Ear, ORIPA exports), ORIPA's .cp, or an SVG drawing with red mountain and blue valley lines (black for the border). Lines are split where they cross and the panels are found automatically. Or export this pattern.
Motion primitives
gait runningEvery gait on this bench is a sequence of a few primitives. Drive them by hand here. The gait pauses while you do.
Gait
Learn a gait
CMA-ESKeeps the phase order and anchors of the gait above and searches every phase's timing, contraction and bend. Each candidate is crawled for three cycles in the simulator.
Mission
The inspection job from the concept brief, one body shape per step: squeeze in folded, crawl to the target, look over the obstacle, press the target, fold up to leave. The table fills in as each step finishes.
Is transforming worth it?
The brief's test: every shape change should unlock something a fixed-form robot can't do nearly as well. Here the baseline is the plain crawler from Move with the same five Kresling cells and no neck, run through the same jobs.
| Run the mission to compare. |
From simulation to robot
Weight check
Servos, board and battery are heavy next to a paper body. This estimates each part's weight, puts the tray loads on the tail and head plates in the simulator, and runs the gait again.
Servo plan
Servos hold positions, not forces, so the simulator's job is to say how far each cable pair must shorten in each phase of the gait.
Wiring
Parts
Controller code
Generated from the current gait. Open it in the Arduino IDE, pick your board and upload.
Build steps
Fold test
One module clamped to the table: power on, hold the fold, power off, and wait for the band to open it.
Servo or shape-memory?
The same hinge with each puller, each with its own mounting. The crawler rows use the crawler settings below. Pick a puller above to see its problems.
Crawler: copies in a row
Join modules end to end and fold them in turn: the strip arches up and lays down again. Feet that slide forward more easily than back turn that into crawling. Each fold stops at the arch angle on a card wedge.
Build it
Wiring
Parts
Controller code
Use it from code
Everything on this page is exposed as window.CreaseLab (source in web/). Open the browser console to drive the simulator from your own learning loop.
const { CrawlerEnv } = CreaseLab;
const env = new CrawlerEnv({ cells: 4 }, { feet: 'anchors' });
let obs = env.reset(); // plate positions, cable levels, anchors
for (let t = 0; t < 400; t++) {
// 4 cable levels in 0..1, then head and tail anchors (0/1)
const action = t % 60 < 30 ? [1, 1, 1, 1, 1, 0] : [0, 0, 0, 0, 0, 1];
const { obs: o, reward, done } = env.step(action); // reward = forward speed
if (done) break;
}
const { buildTransformer, runFor, measureShape } = CreaseLab;
const sim = buildTransformer({ cells: 4, battery: 6 });
sim.controller.set('tower'); // compact, crawl, tower, reach
runFor(sim, 8); // 8 s of sim time
measureShape(sim).camera; // camera height, cm
sim.controller.set('reach', { neck: 45 });
// a whole mission, with the fixed-form baseline:
const report = CreaseLab.runMission();
const { OrigamiEnv } = CreaseLab;
const env = new OrigamiEnv('kresling', { phi: 30 },
{ target: 0.4 }); // aim for 40% stroke
let obs = env.reset(); // hinge angles + height + strain
for (let t = 0; t < 200; t++) {
const action = [0.5]; // tendon force, 0..1
const { obs: o, reward, done } = env.step(action);
if (done) break;
}
What else is in there
CreaseLab.buildPattern(key, params) // crease pattern
CreaseLab.buildMesh(pattern, stiffness) // -> Sim
sim.setFold(0.6); sim.step(500) // drive creases
sim.maxStrain(); sim.energy() // measurements
CreaseLab.makeProblem(key, params, 'compact', { fold: 0.6 })
new CreaseLab.CMAES(x0, 0.25) // ask() / tell()
CreaseLab.toFOLD(pattern); CreaseLab.fromFOLD(json)
CreaseLab.evaluateGait(robotParams, CreaseLab.GAITS.inchworm)
CreaseLab.makeGaitProblem(robotParams, gait, 'speed')
The model, the gaits, what the numbers mean and where it falls short: How it works →