A small robot command language with JavaScript-style syntax. Supports numeric literals, comments, quoted log messages, and repeat(n) { ... }. Variables, arbitrary JavaScript, and browser APIs are not supported.
await robot.moveTo(x, y, z);Move the tool. XY radius: 40–320 mm. Height: 12–100 mm.
await robot.lowerTo(z);
await robot.liftTo(z);Set vertical tool height. Grasp at the cube center: Z=12 on the floor, 36 or 60 in a tower.
await robot.grip();Close jaws and attach an aligned cube. A missed grasp stops the program.
await robot.release();Open jaws. Released cubes fall, collide, rotate and stack. Lower gently before releasing.
await robot.wait(ms);Wait 0–5000 milliseconds.
await robot.home();
robot.log("Hello robot");Return to the initial pose, or print a message to the console.
repeat(2) {
await robot.home();
}Repeat a command block 1–20 times. Maximum 300 expanded commands and 4 repeat levels.
cannon-es rigid-body physics: gravity, friction, block collisions and tumbling. The gripper uses a simplified attachment; the robot arm has no collision bodies. Imported programs never run automatically.