Lucky Engine
A practical guide · September 2026

From a scene
to a recorded trial.

Run a kitchen task or a learned robot motion. Save the evidence, inspect what happened, and choose a useful next experiment.

  1. 1 · Choose a scene
  2. 2 · Run it
  3. 3 · Record
  4. 4 · Review
  5. 5 · Know the limits

Two worked examples · No paid AI call needed for simulation or imported ONNX motion

01 · Your first trial

Start with your own copy.

Sign in on the application you are using. Start from a known scene before changing the robot, controller or environment.

  1. In Your projects, choose an official starter such as Juniper Kitchen or G1 learned motion. You can also find published examples under Community projects.
  2. Open the starter’s details and choose Open. Opening another author’s project creates an attributed copy for your account. Give your experiment a recognizable name and save your changes.
  3. Wait for the physics model to load. The hierarchy selects entities; Inspector shows the selected entity’s settings. The bottom Project contents tab contains project assets; it is separate from the outer project library.
  4. Use Play to run, Pause to inspect, and Reset simulation to return to the authored starting state. Reset before editing a scene that has already moved.
Scripted task

Juniper Kitchen

A Panda arm picks fruit and places it in a bowl. Learn to distinguish a controller command from measured contact and task completion.

Try the kitchen →
Learned policy

G1 aiming motion

A trained ONNX policy drives a simulated Unitree G1 through a two-second reference. Learn to inspect the policy clock and record its actions.

Try G1 →
02 · A task with a measured outcome

Run Juniper Kitchen.

The furnished kitchen includes opening doors and drawers, a countertop Panda and a fruit-to-bowl behavior. Start with the bundled setup.

  1. Open your copy of Juniper Kitchen. Inspect the Panda, fruit and bowl in the hierarchy. Keep the example’s fruit-picking behavior enabled.
  2. Press Play. Watch the approach, grasp, transport and release. The engine simulates contacts and actuator forces as the behavior runs.
  3. Read the task or episode result and its reason. A successful movement command does not prove that the fruit was grasped or placed. A take stopped while its episode is still running is unfinished.
  4. Reset, then use Record scene for a fresh trial. Let it finish, or use Stop & save to retain a partial trial. Follow the recording checklist before drawing a conclusion.

What to look for

  • The robot actually contacts and holds the fruit during transport.
  • The placement settles in the bowl rather than merely passing over it.
  • The recorded task state and reason agree with what the video shows.

Make a controlled comparison

Save a second copy and change one supported starting condition, such as an apple’s pose. Keep the seed and other settings fixed. If a behavior randomizes the pose at reset, adjust that randomization setting rather than a transform it will overwrite. Record both versions and compare their measured outcomes. One successful retry is useful evidence, but does not establish a general fix.

03 · A policy drives the robot

Run a learned G1 motion.

The included aiming example uses a trained mjlab fused G1 policy. ONNX Runtime reads simulated state and produces actions; MuJoCo advances the resulting physical motion.

  1. From Your projects, choose the G1 learned motion starter, open its details, then choose Open. Alternatively, download the portable G1 example and import that project ZIP.
  2. Select Unitree G1, then open Inspector → Learned motions. Check that the aiming policy is attached and enabled.
  3. Press Play. The robot performs its aiming stance and pivot. At the end, the policy reports Reference finished · outcome not assessed.
  4. Press Reset simulation. This restores the entry pose, velocities, prior-action state and policy clock. Play again to repeat the run.
  5. Use Record scene to capture a new run. Save the project or export its portable ZIP to retain the robot and attached model together.
The included G1 example has three different clocks.
ClockRateFull reference
Physics200 Hz · 5 ms per step400 physical steps
Policy inference50 Hz · once every 4 physics steps100 inference records
Recorded images and rows30 fps61 frames including time zero and the 2-second boundary

Import another supported motion

After selecting a compatible robot, use Learned motions → Import ONNX / policy ZIP. Select the imported model and choose Attach motion. Disable or detach the active motion before driving that robot with joint controls, scripts or another controller.

Prepared exports must provide the expected 29-joint G1 contract, observation order, action scales, matching PD gains, initial pose and velocities, reference duration and physics rate. An arbitrary ONNX network is not interchangeable with this controller. The importer rejects missing metadata or incompatible robot settings.

For policy authors: supported contract

The current path expects a floating-base G1, float32 [1,101] observations, 29 raw actions, embedded normalization and reference outputs. Physics uses an explicit 2 ms or 5 ms timestep with an integral number of steps per action. Policies sharing a scene must agree on that timestep. See the motion preparation and compatibility guide and numeric validation baseline.

04 · Preserve the evidence

Record, then inspect the result.

  1. Choose an Episode seed and recording resolution. Start at 256 × 256 for a quick check; 512 × 512, 720p and 1080p are also available.
  2. Choose Live or Photographic quality. Photographic capture converges each frame before continuing. More samples and higher resolution take longer.
  3. Press Record scene. Recording resets the episode; it does not continue from a paused live pose. Policy inference and physical steps are awaited, so slow rendering does not skip policy actions.
  4. Wait for encoding and finalization. Stop & save keeps a completed partial take; Cancel discards the active incomplete recording.
  5. Use Download MP4 for playback and Download dataset ZIP for analysis. Keep both alongside the portable project.

Before calling a recording useful

  • Play the MP4 and confirm the intended robot and task are visible.
  • Check the reported frame count and resolution. A full G1 take has 61 frames; its last physical sample is at 2 seconds and the encoded duration is 61/30 seconds.
  • Read the recorded episode status and reason. Neither an accepted command nor a finished reference establishes task success.
  • Retain unsuccessful or unfinished takes when they explain a failure.
For dataset users: timestamps and replay

Rows and video use frame_index / 30. Physical state is sampled at ceil(frame_index × physics_hz / 30); its actual time is stored in the trace. The scene can use 500 Hz or 200 Hz physics. Older recordings without a rate default to 500 Hz.

The archive includes LeRobot v3 data, synchronized video and sensor channels, plus source/evidence metadata. Policy recordings retain the frame-zero initial_state, every applied raw_ctrl_ticks vector and each inference’s observations, actions, model hash and inferenceTick. Raw-control replay restores that initial state and advances the recorded controls without rerunning the ONNX model. See the recording reference.

05 · Optional advisory review

Ask a focused question with Jev.

Requires configured paid service

Open the Jev skills workspace tab when available. Scene skills review the authored setup; episode skills review a saved recording’s extracted evidence. Neither replaces a physical trial.

SkillTry it with JuniperWhat the answer establishes
Scene readinessAsk “Pick the apples and place them in the bowl.” Check the listed robot, behavior and container.A prioritized setup review, not reachability or task success.
Episode reviewerSelect a finished take; compare its measured outcome with the proposed label.An advisory classification from the supplied evidence.
Failure triageInspect a lost grasp or transport slip alongside the video.A hypothesis to investigate, not proof of causality.
Next experimentKeep a seed fixed and change one supported setting in a scene copy.A manual follow-up suggestion; no scene edit or batch is launched.
Camera framingCompare fixed-camera coverage before recording.Centre-point coverage at 16:9; not occlusion or photographic quality.
  1. Choose a skill and provide its objective or saved recording. If Run is disabled, read the reason above the button. Finish or cancel an active recording first.
  2. Choose Run Jev skill, then expand Exact evidence and rubric. Check that the source and relevant events match the trial you intended.
  3. Save Agree, Disagree or Insufficient evidence, with notes. Download the assessment JSON when you need a durable or shareable copy.

Assessments are stored separately from the original MP4, Parquet and dataset ZIP. Evidence can be sampled or incomplete; video pixels and raw contact-pair history are not sent for these reviews. Check omitted events and context limits before accepting a detailed explanation.

Assistant model routing

AI assistant → Settings → Model → Auto · Jev task routing asks Jev to classify the request, then selects from configured models. Read the routing notice. Low confidence or an unavailable service uses a reported fallback; choosing a model manually bypasses routing. This does not select Blender automatically or establish which model is best.

06 · The same engine, another client

Connect your agent.

Agents use the same projects and real browser simulation through HTTP or MCP. Start with the connection page; the manifest lists every operation and its required scope.

  1. Sign in and open Settings → Agent connections. Create a named, scoped, expiring key. Keep it in the client’s local secret environment.
  2. Use an owned project or attributed remix, then create a runtime. A connected editor or the provided browser runner executes physics, rendering, policy inference and recording.
  3. Inspect before and after a command. A queued job or accepted edit is not a measured physical outcome. Poll until the job finishes, and read the resulting state.
  4. Save with project.save or export before closing a disposable runner. Download artifacts while they are available.

Ask your agent to try the included policy

“Read the motion guide, import the portable G1 example into my owned runtime, reset and step 400 physics ticks. Report simulation.motions and the measured state. Record a fresh three-second budget at 256 × 256, download the dataset and MP4, and verify that the reference ended without claiming task success.”

The three-second budget includes the final boundary; the example stops itself after 61 captured frames. A two-second budget contains only 60 samples.

07 · Where the work runs

Separate simulation from services.

PartResponsibility
Your browserThree.js rendering, MuJoCo physics, QuickJS behaviors, imported ONNX inference and recording/encoding.
Hosted applicationAccount access, project/artifact storage, runtime coordination and configured provider gateways.
Optional providersAssistant generation, Blender services and advisory Jev calls. Availability depends on the configured backend.

Production uses web.luckyrobots.com. Feature work uses a native Cloudflare branch Preview URL under the existing application Worker. Keep relative links on the origin you opened. A preview does not imply that local backend services or browser-local data have moved with it.

Record the branch/build, browser, hardware, seed and capture settings when comparing performance. Simulated time, wall-clock execution time and video duration are different measurements. A 5 ms simulation step is not a claim that its CPU work takes 5 ms.

08 · Read the roadmap accurately

Available now. Proposed next.

This tutorial adapts the Cloudflare, performance and Jev design plan to the current application. That source describes a staged engineering proposal, not a completion report.

Implemented

What you can try

  • Browser simulation and scripted robot tasks.
  • Prepared G1 ONNX import, attachment, reset and finite motion execution.
  • Synchronized recording, portable projects and recorded-control replay.
  • Manual Jev evidence reviews and assistant routing when the provider is configured.
  • Scoped HTTP/MCP agents operating connected browser runtimes.
Planned

What to treat as a proposal

  • Automatic weakness mining and targeted collection.
  • Camera search with occlusion-aware optimization.
  • Runtime AI Decision components and dependable skill selection.
  • Arbitrary mid-episode branching and checkpoint recovery.
  • Generic ONNX adapters, policy blending and training in the editor.

The proposed future loop is: extract versioned evidence, ask a bounded question, retain an annotation and human review, then compare a controlled follow-up. Today the follow-up remains a deliberate user action. Existing recording batches are bounded repetition, not autonomous weakness discovery.

Dynamic loading, pose-buffer transfer, shared memory and alternative encoders in the design plan are performance experiments. They require measurements and output-integrity checks before any speed or quality benefit can be claimed. A held-out comparison of Jev, deterministic rules and another model remains necessary to establish review quality.

Keep going

When something stops.

The policy refuses to attach.

Read the named contract error. Check that you used the prepared export and its matching robot, full-precision PD gains, initial-state metadata and declared timestep. Use the included portable G1 example as a known starting point. Changing an unrelated robot to silence validation does not make it the trained robot.

The robot stops at “Reference finished.”

The finite reference has ended. Reset to repeat it. Check a separate task predicate if you need a task-success assessment; the motion status does not provide one.

The simulation reports a fall or non-finite output.

Keep the error and recorded evidence. Reset or reload the supported project and check its robot/model compatibility. Do not count the interrupted rollout as success.

Recording is slower than playback.

Higher resolutions and photographic samples cost more rendering time. Capture waits for each frame and inference rather than dropping them. Try 256 × 256 Live first, then increase quality once the physical behavior is established.

My project or recording is missing on another endpoint.

Browser-local state belongs to its browser profile and origin. Reopen a saved cloud project where available or import its portable ZIP; move recordings using their exports. A native preview and production may use different account/storage environments.

An agent reports a queued, disconnected or conflicted job.

Keep the runtime connected, poll the job and inspect state before retrying. Refresh its generation/revision. On a cloud-save conflict, export the draft and compare with the latest project instead of overwriting another editor’s changes. See recovery guidance.