Failure pattern field guide

Lighting variance in Sim2Real: grasps that fail under glare, shadow, or low light

A field guide to the failures that appear when the deployed scene is lit differently from every scene the policy trained on, and to what Sim2Real does with events tagged lighting_variance.

Tag string
lighting_variance
Assigned by
Your telemetry, not Sim2Real
Starter patch
MuJoCo and Isaac Sim, from 3 events

Symptoms in the field

What engineers and operators usually notice first. One of these alone proves little; several together are a reason to tag failures lighting_variance and look at the simulator.

  • Grasp or detection success drops at particular times of day and then recovers, with no change to the robot or the item mix.
  • Failures concentrate at one station, aisle, or dock door: near a skylight, a window, or a recently replaced fixture.
  • Specular items such as shrink wrap, polybags, glossy cartons, and bare metal fail far more often than matte ones.
  • Depth images show holes or flying pixels on shiny or very dark surfaces, and the grasp planner picks a point on the edge of the hole.
  • Detection confidence falls before the grasp is attempted. The arm executes a clean motion to the wrong place.
  • Operators report that shading a lamp or closing a door makes the cell work again.

Likely sim-side causes

None of these is proven by the tag. They are the simulator assumptions worth checking first when a perception-driven skill degrades with the light. Sim2Real does not determine root cause.

  • Narrow lighting randomization. Intensity, colour temperature, and light direction are sampled from a range that matches the lab or the regression fixture, not the site.
  • No hard or moving shadows. If the arm and gripper never shade the target in training frames, the policy has not seen the image it gets at pre-grasp.
  • A matte material set. Without specular and translucent variants, highlights never clip in simulation the way they do on film-wrapped items.
  • An idealised camera. Fixed exposure, no auto-exposure lag, no saturation, and no low-light noise mean rendered frames never contain blown-out or grainy regions.
  • Perfect depth. Depth rendered straight from geometry does not reproduce how active stereo or time-of-flight sensors fail on reflective or absorbing surfaces.

What telemetry to send

Post one JSON event per failure to POST /api/telemetry with your key in the x-api-key header, or up to 50 events at a time as { "events": [...] } to POST /api/telemetry/batch. Only robotId and eventType are required, and robotId must be a robot in your workspace fleet. For lighting, the useful context is whatever lets an engineer rebuild the scene: exposure and gain, a luminance summary, the fraction of clipped or invalid-depth pixels, and a reference to the frame in your own storage.

Illustrative event Robot, site, and values are invented. The top-level field names are the ones the API accepts.

{
  "robotId": "arm-07",
  "eventType": "failure",
  "failurePattern": "lighting_variance",
  "taskName": "tote_pick_mixed_sku",
  "siteName": "Example Site / Aisle 7B",
  "timestamp": "2026-11-10T16:42:11Z",
  "eventId": "arm-07-000184",
  "simConfidence": 0.91,
  "realWorldSuccessRate": 0.64,
  "driftScore": 0.41,
  "rawSensor": {
    "camera": "wrist_rgbd",
    "exposure_ms": 4,
    "gain_db": 12,
    "mean_luma": 0.82,
    "clipped_pixel_fraction": 0.19,
    "depth_invalid_fraction": 0.27,
    "light_reference": "skylight_west_open",
    "frame_ref": "frames/arm-07/000184"
  }
}
  • eventType is one of observation, action, failure, or success. Post successes as well as failures: the workspace success rate is calculated from the two.
  • simConfidence, realWorldSuccessRate, and driftScore are numbers you report, stored within the range 0 to 1.
  • rawSensor is a JSON object or array of at most 8 KB. The key names inside it are yours. Sim2Real stores it as sent, redacts keys that look like credentials, and does not interpret it.
  • eventId is optional and makes retries safe: repeating an id the robot has already stored is acknowledged without storing a second event.
  • Camera frames, point clouds, and logs stay in your systems. Reference them by identifier, as rawSensor does above.

How Sim2Real groups it

A failure event joins this group when its failurePattern field is exactly lighting_variance. Surrounding whitespace is trimmed and case matters. Sim2Real stores that tag as sent. It does not inspect rawSensor, images, or logs to choose a tag, and it does not re-tag events.

  • In the workspace, the group shows how many failures carry the tag, how many arrived in the last 24 hours, which robots are affected, and when it was last seen.
  • At three or more failures, the workspace lists a review item titled “Review a starter lighting override” and the export includes the starter block below.
  • A misspelled or unrecognized value is stored as unknown, and the API response carries a warning that names the value. The unknown group gets no starter patch.

The tag describes what your team observed. It is a label for triage, not a diagnosis. See how tags are assigned for the full rules.

The starter patch Sim2Real generates

Signed-in workspaces can download a JSON patch from GET /api/export/mujoco or GET /api/export/isaacsim, for the whole workspace or for one robot with ?robotId=. When three or more stored failure events in that scope are tagged lighting_variance, the file contains exactly the block below, next to the blocks for any other tag that reached three.

MuJoCo export

{
  "parameterOverrides": {
    "lighting": {
      "ambient": {
        "intensity": 0.4
      },
      "directional": {
        "intensity": 0.8
      },
      "castShadows": true
    }
  },
  "diff": [
    {
      "path": "/world/light[0]/intensity",
      "old": "0.6",
      "new": "0.8",
      "reason": "lighting_variance: increase overhead glare robustness"
    },
    {
      "path": "/world/light[1]/castShadows",
      "old": "false",
      "new": "true",
      "reason": "lighting_variance: enable shadow casting for glare calibration"
    }
  ]
}

Isaac Sim export

{
  "layer": {
    "lightingUpdate": "Increased overhead glare and exposure robustness"
  },
  "operations": [
    {
      "op": "override",
      "path": "/World/Light/Intensity",
      "value": 800,
      "unit": "lux"
    },
    {
      "op": "override",
      "path": "/World/Light/Color",
      "value": [
        1,
        0.95,
        0.9
      ],
      "unit": "rgb"
    }
  ]
}

The file also carries engine, generatedAt, robotId, and site, and the Isaac Sim file adds format: "usd". Those are omitted here.

What this starter does

  • The MuJoCo block raises one directional light, sets an ambient level, and turns shadow casting on. The Isaac Sim block overrides one light's intensity and gives it a slightly warm colour.
  • Each is a single point value, not a randomization range. If the field problem is variation through the day, the useful change is usually a range in your domain-randomization config, and choosing that range is your team's decision.
  • Lights only matter to a policy that consumes rendered images. A state-based policy is unaffected by this block.

What it does not do

  • It does not add specular materials, change the camera or exposure model, alter depth-sensor behaviour, or rewrite pose ranges.
  • The values are constants, identical for every workspace. They are not calculated from your events, and the count of events only decides whether the block is present.
  • The old values in the MuJoCo diff are the baseline the starter assumes. Sim2Real does not read your MJCF model or USD stage, so the paths are a schema to map onto your assets, not addresses guaranteed to exist in them.
  • Nothing is applied automatically. The export is a file for your engineers to review, change, or discard.

What to validate after applying

The patch is a starting point for a simulator change, and the validation is yours. A workable order:

  • Render a batch of frames with the old and new settings and compare their luminance histograms with real frames from the failing station. Those frames live in your systems; Sim2Real does not hold images.
  • Decide whether a single intensity is what you want. If not, turn the starter value into a range in your domain-randomization config.
  • Re-run your simulation regression suite and confirm that scenarios which passed before still pass.
  • Retrain or fine-tune through your own process and evaluate on a held-out real set that you define. The product does not run a held-out validation set.
  • Roll out to one robot first and keep posting events with the same taskName and siteName, so the windows before and after are comparable.
  • Compare the lighting_variance count against attempts across the two windows, and write down anything else that changed: season, item mix, fixtures, camera firmware.

On causality. Your team reviews and applies the patch, then posts the next events to compare. Sim2Real does not claim a later change in success rate was caused by the patch. A change in the reported success rate is not by itself proof of cause.

Questions

Does Sim2Real detect lighting failures from my images?

No. Sim2Real does not receive images. It groups a failure under lighting_variance only when the event you post carries that tag.

When does the lighting_variance starter patch appear in an export?

Once three or more stored failure events in the export scope carry the lighting_variance tag. Below that count the export contains no block for this tag.

Are the starter patch values tuned to my robot or site?

No. They are fixed starter values, the same for every workspace. Sim2Real does not read your MJCF model or USD stage, and your engineers decide whether and how to apply them.

Try it on your own failures

Bring one failure pattern, not a platform migration.

Run your own failure log through the analyzer, start the Pilot Optimizer plan at $499/month for up to three robots, or ask an engineer to look at one representative failure with you.