ROBOTICS × PROGRAMMING

Your code. A robot. One workspace.

Write a program, control joint motion, and solve a challenge.

⌘ program.robot RobotScript
Ready to run0 commands
CONSOLE 0

Ready when you are.
Run the starter program to deliver your first block.

SIMULATION SCARA · 3 AXESIDLE
Click for coordinates · Drag to orbit⊕ Scroll to zoom
Click the grid to inspect XY
TOOL X254.2 mm
TOOL Y68.1 mm
TOOL Z100.0 mm
GRIPPEROpen
01 / STARTER

Your first pick

0 / 1 delivered

{ }

Small API. Actual movement.

RobotScript uses JavaScript-style commands. Each command waits for the robot.

REFERENCE

RobotScript API

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.

SEND A CHALLENGE

Let someone else take control.

The link includes your block layout and goals. Include your program to share a solution or a work in progress.

CHALLENGE BUILDER

Make it your own.

Enter XY positions in millimetres. Keep centers 55–295 mm from the base and leave space between blocks and goals.

BLOCKSTART XSTART YGOAL XGOAL Y