{
  "schema": 1,
  "generated": "2026-10-26",
  "count": 135,
  "language_basics": [],
  "entries": [
    {
      "category": "GRS Language",
      "subcategory": "",
      "title": "Time duration",
      "purpose": "Time represents an elapsed simulation duration, stored as signed integer microseconds.",
      "syntax": "<number> sec | <number> min | <number> hour",
      "example": "begin model.init event\n    set pickupTime = 10 sec\n    set cycleTime = 2 hour + 30 min\n    set halfTime = cycleTime / 2\n    print cycleTime to log\nend",
      "example_status": "source",
      "notes": "Time is different from Integer/Real. Time + Time and Time - Time yield Time; Time multiplied or divided by a number yields Time; Time / Time yields a ratio. Comparisons require two Time values. Logs render durations in seconds. Unit aliases sec/secs/second(s), min/mins/minute(s), hr/hrs/hour(s), day(s) are accepted. Plain numbers remain Integer/Real. Ordinary user-authored wait statements remain restricted by the current GRS syntax policy.",
      "related": "Variable, set, print to log"
    },
    {
      "category": "Getting Started",
      "subcategory": "",
      "title": "GRS file",
      "purpose": "Simulation Studio Model Logic source file.",
      "syntax": "*.grs",
      "example": "begin model.init event\n    print \"ready\" to log\nend",
      "example_status": "source",
      "notes": "GRS uses UTF-8 text. 2026-10-20: GRS was reduced to a minimal surface ahead of a full redesign. Supported: init events, model.snap, the 12 Vehicle events, if / else, while / for each, set / inc / dec, attributes, + - * / %, print ... to log, and all Humanoid events/functions. Anything else is rejected at Compile with GRS_REMOVED_SYNTAX.",
      "related": "Init events, Vehicle event syntax, if / else, while, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Model snap",
      "purpose": "Runs after a completed Model session snapshot boundary. The event observes the model at the exact committed simulation time, without creating a UI render timer.",
      "syntax": "begin model.snap event\n    ...\nend",
      "example": "begin model.init event\n    set snapCount = 0\nend\nbegin model.snap event\n    inc snapCount by 1\n    print \"model snap\", snapCount to log\nend",
      "example_status": "source",
      "notes": "The first event runs at simulation time 0 after Init. Thereafter one event runs for each successful forward ModelExecutionSession.advanceTo() call, after all physics modules finish. Re-reading the immutable snapshot, pausing, or advancing to the same time does not fire it again. Each module executes its own defined model.snap handler, if present. This is not triggered by Qt paint/repaint and it is not a request to save the project file. 'begin model snap event' is accepted as an alias. Normal GRS restrictions on wait and functions still apply.",
      "related": "model.init, Time duration, print to log"
    },
    {
      "category": "Getting Started",
      "subcategory": "",
      "title": "Init events",
      "purpose": "Runs once at simulation time zero to initialize model values.",
      "syntax": "begin model.init event\n    ...\nend\nbegin OHT.init event\n    ...\nend\nbegin AMR.init event\n    ...\nend\nbegin Humanoid.init event\n    ...\nend",
      "example": "begin model.init event\n    set count = 0\n    print \"model ready\" to log\nend",
      "example_status": "source",
      "notes": "model.init runs once per model. OHT.init / AMR.init / Humanoid.init are the typed initializers used by Global Init.",
      "related": "Global Init, set, print to log"
    },
    {
      "category": "Getting Started",
      "subcategory": "",
      "title": "Global Init / default OHT AMR Humanoid",
      "purpose": "Create the default OHT, AMR and Humanoid counts directly from one global initialization event.",
      "syntax": "begin model.init event\n    vi_OHT = 10\n    vi_Humanoid = 3\n    vi_AMR = 3\nend",
      "example": "begin model.init event\n    vi_OHT = 10\n    vi_Humanoid = 3\n    vi_AMR = 3\nend\nbegin OHT.init event\n    set i = 0\n    while i < vi_OHT\n    begin\n        inc i by 1\n        print \"OHT\", i, \" is initialized\" to log\n    end\nend\nbegin Humanoid.init event\n    set i = 0\n    while i < vi_Humanoid\n    begin\n        inc i by 1\n        print \"Humanoid\", i, \" is initialized\" to log\n    end\nend\nbegin AMR.init event\n    set i = 0\n    while i < vi_AMR\n    begin\n        inc i by 1\n        print \"AMR\", i, \" is initialized\" to log\n    end\nend",
      "example_status": "source",
      "notes": "New global-init script has exactly one model.init with three positive integer vi_* values and these three typed events. At Compile the already-placed drawing supplies one OHT rail Level and one AMR floor Level (each with two distinct Stations); scripted Job Source is used with no synthetic traffic. Existing C++ Core creates vi_OHT/vi_AMR vehicles. Three-dimensional default humanoids are created at a floor Station. The typed init events run once at simulation time zero and print to the Studio message log. Other legacy and previously declared auto-bound scripts retain their existing behavior. All five previous helper initializers are NOT required for this opt-in.",
      "related": "model.init, OHT.init, AMR.init, Humanoid.init, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle event syntax",
      "purpose": "Public Vehicle event syntax shared by OHT, AGV and AMR: vehicle. followed by the event name with underscores (pickup, setdown, speed_change, resume_to_drive, start_to_move, arrived_at_station, job_finished, job_selection, job_assigned, decelerate_to_destination, passing_station, destination_change). The old space form (begin Vehicle pickup event) was removed.",
      "syntax": "begin vehicle.<event_name> event\n    ...\nend",
      "example": "begin vehicle.job_assigned event\n    print \"job assigned\" to log\nend",
      "example_status": "source",
      "notes": "The GRS compiler lowers these event declarations to the engine's existing internal callbacks. Existing project event keys still load for compatibility. The event actor Vehicle is available as this Vehicle. The same header works in OHT, AGV and AMR modules; steer change and for each ... in Vehicle are OHT only.",
      "related": "Vehicle, Vehicle, OHT, AGV, AMR, GRS Events"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle pickup",
      "purpose": "Arrives at the physical pickup boundary.",
      "syntax": "begin vehicle.pickup event\n    ...\nend",
      "example": "begin vehicle.pickup event\n    print \"Vehicle pickup\" to log\nend",
      "example_status": "source",
      "notes": "The Load is loaded at the existing physical pickup boundary. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle setdown",
      "purpose": "Arrives at the physical setdown boundary.",
      "syntax": "begin vehicle.setdown event\n    ...\nend",
      "example": "begin vehicle.setdown event\n    print \"Vehicle setdown\" to log\nend",
      "example_status": "source",
      "notes": "The unloading completion occurs after the configured setdown dwell. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle speed change",
      "purpose": "Physical Vehicle speed changes.",
      "syntax": "begin vehicle.speed_change event\n    ...\nend",
      "example": "begin vehicle.speed_change event\n    print \"Vehicle speed change\" to log\nend",
      "example_status": "source",
      "notes": "Uses existing engine speed transitions, not polling. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle resume to drive",
      "purpose": "A stopped Vehicle starts driving again.",
      "syntax": "begin vehicle.resume_to_drive event\n    ...\nend",
      "example": "begin vehicle.resume_to_drive event\n    print \"Vehicle resume to drive\" to log\nend",
      "example_status": "source",
      "notes": "Uses a real resume transition. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle start to move",
      "purpose": "The Vehicle starts actual travel.",
      "syntax": "begin vehicle.start_to_move event\n    ...\nend",
      "example": "begin vehicle.start_to_move event\n    print \"Vehicle start to move\" to log\nend",
      "example_status": "source",
      "notes": "Ignores the internal near-zero wake probe. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle job finished",
      "purpose": "A physical ScheduleJob reaches its completed handoff.",
      "syntax": "begin vehicle.job_finished event\n    ...\nend",
      "example": "begin vehicle.job_finished event\n    print \"Vehicle job finished\" to log\nend",
      "example_status": "source",
      "notes": "Fires after setdown dwell. OHT: actor is the completed ScheduleJob (this Vehicle is its Vehicle). AMR / AGV: actor is the carrying Vehicle. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle job selection",
      "purpose": "A live ScheduleJob becomes selected.",
      "syntax": "begin vehicle.job_selection event\n    ...\nend",
      "example": "begin vehicle.job_selection event\n    print \"Vehicle job selection\" to log\nend",
      "example_status": "source",
      "notes": "OHT: actor is the selected ScheduleJob; unchanged selection does not re-fire. AMR / AGV: actor is the Vehicle the Job was assigned to. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle decelerate to destination",
      "purpose": "The Vehicle reaches the final prepared travel span.",
      "syntax": "begin vehicle.decelerate_to_destination event\n    ...\nend",
      "example": "begin vehicle.decelerate_to_destination event\n    print \"Vehicle decelerate to destination\" to log\nend",
      "example_status": "source",
      "notes": "Fires on actual movement in the final span. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle arrived at station",
      "purpose": "The Vehicle reaches its pickup or setdown Station.",
      "syntax": "begin vehicle.arrived_at_station event\n    ...\nend",
      "example": "begin vehicle.arrived_at_station event\n    print \"Vehicle arrived at station\" to log\nend",
      "example_status": "source",
      "notes": "Fires once at the arrival boundary before the pickup/setdown event. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle job assigned",
      "purpose": "An idle OHT begins its next Job or explicit travel.",
      "syntax": "begin vehicle.job_assigned event\n    ...\nend",
      "example": "begin vehicle.job_assigned event\n    print \"Vehicle job assigned\" to log\nend",
      "example_status": "source",
      "notes": "2026-10-17: fires on Idle-to-travel/Pickup transition; actor is the assigned Vehicle. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle passing station",
      "purpose": "The OHT passes a Station on its route.",
      "syntax": "begin vehicle.passing_station event\n    ...\nend",
      "example": "begin vehicle.passing_station event\n    print \"Vehicle passing station\" to log\nend",
      "example_status": "source",
      "notes": "2026-10-17: fires for each physically crossed Station, excluding departure; no fleet-wide polling. The engine uses an internal callback key; write the Vehicle event header in new GRS models. wait is not allowed inside a passing station event (the vehicle is moving through the Station): compile error GRS_SEMA_WAIT_IN_PASSING_STATION_EVENT.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle destination change",
      "purpose": "The OHT starts a new travel leg toward its destination.",
      "syntax": "begin vehicle.destination_change event\n    ...\nend",
      "example": "begin vehicle.destination_change event\n    print \"Vehicle destination change\" to log\nend",
      "example_status": "source",
      "notes": "2026-10-17: fires at travel-leg start (initial travel or post-pickup delivery), up to twice per Job. The engine uses an internal callback key; write the Vehicle event header in new GRS models.",
      "related": "Vehicle, print to log"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Vehicle OHT / AGV / AMR differences",
      "purpose": "The vehicle.<event_name> header is the only spelling: there are no separate Def_OHT / Def_AGV / Def_AMR headers. It works in OHT, AGV (AMR Core Fixed Path) and AMR modules with the same 12 event names.",
      "syntax": "begin vehicle.<event_name> event\n    ...\nend",
      "example": "begin vehicle.passing_station event\n    print \"passing \", vehicle.passing_station_name to log\nend",
      "example_status": "source",
      "notes": "Observation is enabled only for events you implement and never changes physics. This Vehicle is the actor Vehicle. passing station radius for AMR / AGV is max(250 mm, body radius); vehicle.passing_station_name reads the station just passed. wait is not allowed inside a passing station event (the vehicle is moving through the Station): compile error GRS_SEMA_WAIT_IN_PASSING_STATION_EVENT. for each ... in Vehicle is OHT only: an AMR / AGV module that uses it is rejected before the run.",
      "related": "Vehicle, AMR, AGV, OHT, GRS Events"
    },
    {
      "category": "Events",
      "subcategory": "",
      "title": "Humanoid event syntax",
      "purpose": "Humanoid uses the same 12 event names (begin humanoid.pickup event, ...). Job means humanoid_transfer; pickup/setdown fire when humanoid_pick/humanoid_place start.",
      "syntax": "begin humanoid.<event_name> event\n    ...\nend",
      "example": "begin humanoid.job_finished event\n    print \"done \", this Humanoid to log\nend",
      "example_status": "source",
      "notes": "this Humanoid is humanoid_self(); humanoid_event_place() reads the place just passed (within 400 mm) inside passing station. resume to drive occurs only in live walking. wait is not allowed inside a passing station event (the vehicle is moving through the Station): compile error GRS_SEMA_WAIT_IN_PASSING_STATION_EVENT.",
      "related": "Humanoid, GRS Events"
    },
    {
      "category": "Humanoid",
      "subcategory": "",
      "title": "Humanoid walk events (two-file global init)",
      "purpose": "Run starts OHT 10, AMR 3 and Humanoid 3 and drives Humanoid 1 and 2 back and forth through physical floor Stations.",
      "syntax": "model_init.grs + humanoid_logic.grs",
      "example": "begin Humanoid walk resume event\n    wait for 0.5 sec\nend\nbegin Humanoid walk start event\n    print this humanoid, \" walk start now\" to log\nend\nbegin Humanoid arrived at station event\n    if (current station = humanoid_1)\n        dispatch this humanoid to humanoid_2\n    else if (current station = humanoid_2)\n        dispatch this humanoid to humanoid_1\nend",
      "example_status": "source",
      "notes": "Opt-in requires two GRS files: model_init.grs with vi_OHT, vi_AMR, vi_Humanoid and OHT.init, AMR.init, Humanoid.init; and humanoid_logic.grs with walk resume/start/arrived at station events. All three Init callbacks must complete across all modules before any regular t=0 event or initial humanoid walk begins. A waiting/failed Init rejects Run before simulation time advances. In model_init.grs the authored spwan Humanoid(1 or 2) to humanoid_1 or humanoid_2 is accepted as compatibility syntax. These compile to native humanoid_create, humanoid_walk_to, humanoid.arrived and a suspended 0.5-second wait. Each physical arrival triggers the next leg, without every-event polling. Humanoid 3 remains idle until explicitly dispatched; Job flows removed from this project are not auto restored. Existing auto-bound and explicitly declared module behavior is unchanged.",
      "related": "Humanoid.init, humanoid.arrived, humanoid_create, humanoid_walk_to, print to log"
    },
    {
      "category": "Control Flow",
      "subcategory": "",
      "title": "if / else if / else",
      "purpose": "Executes conditional branches.",
      "syntax": "if <condition> then begin\n    ...\nend\nelse begin\n    ...\nend",
      "example": "if vehicle.id = 1 then begin\n    print \"first vehicle\" to log\nend\nelse begin\n    print \"other vehicle\" to log\nend",
      "example_status": "source",
      "notes": "The AutoMod-style two-line form is also accepted: write if (condition) or else if (condition) and put begin on the next line. In conditions = is comparison.",
      "related": "comparison operators, and, or, not"
    },
    {
      "category": "Control Flow",
      "subcategory": "",
      "title": "while",
      "purpose": "Repeats a block while its condition is true.",
      "syntax": "while <condition> do begin\n    ...\nend",
      "example": "set i = 0\nwhile i < 5\nbegin\n    inc i by 1\n    print \"i = \", i to log\nend",
      "example_status": "source",
      "notes": "The two-line form (while condition, then begin on the next line) is accepted.",
      "related": "break, continue, inc"
    },
    {
      "category": "Control Flow",
      "subcategory": "",
      "title": "for each",
      "purpose": "Iterates a list snapshot.",
      "syntax": "for each <item> in <list> do begin\n    ...\nend",
      "example": "for each v in Vehicle\nbegin\n    print v to log\nend",
      "example_status": "source",
      "notes": "for each v in Vehicle iterates all OHT vehicles (OHT only). The list is evaluated once when the loop begins.",
      "related": "while, break, continue"
    },
    {
      "category": "Control Flow",
      "subcategory": "",
      "title": "break",
      "purpose": "Leaves the innermost while / for each loop.",
      "syntax": "break",
      "example": "while i < 10\nbegin\n    inc i by 1\n    if i = 5 then begin\n        break\n    end\nend",
      "example_status": "source",
      "notes": "Only valid inside a loop.",
      "related": "while, for each, continue"
    },
    {
      "category": "Control Flow",
      "subcategory": "",
      "title": "continue",
      "purpose": "Skips to the next iteration of the innermost loop.",
      "syntax": "continue",
      "example": "while i < 10\nbegin\n    inc i by 1\n    if i % 2 = 0 then begin\n        continue\n    end\n    print i to log\nend",
      "example_status": "source",
      "notes": "Only valid inside a loop.",
      "related": "while, for each, break"
    },
    {
      "category": "Core Actions",
      "subcategory": "",
      "title": "print to log",
      "purpose": "Writes text to the Studio message log.",
      "syntax": "print <value>, <value>, ... to log",
      "example": "print \"vehicle \", vehicle.id, \" arrived\" to log",
      "example_status": "source",
      "notes": "Arguments are rendered in order. print ... to message was removed; use to log.",
      "related": "Model Logic log"
    },
    {
      "category": "Core Actions",
      "subcategory": "",
      "title": "set",
      "purpose": "Assigns a variable or a writable attribute.",
      "syntax": "set <name> = <value>\n<name> = <value>",
      "example": "set count = 0\nset Vehicle.my_counter = 3",
      "example_status": "source",
      "notes": "Custom attributes on Vehicle are script-side values and never overwrite physical Vehicle state.",
      "related": "inc, dec, attributes"
    },
    {
      "category": "Core Actions",
      "subcategory": "",
      "title": "inc",
      "purpose": "Increments a numeric variable or attribute.",
      "syntax": "inc <name> by <amount>",
      "example": "inc count by 1",
      "example_status": "source",
      "notes": "Unwritten numeric values begin at 0.",
      "related": "set, dec"
    },
    {
      "category": "Core Actions",
      "subcategory": "",
      "title": "dec",
      "purpose": "Decrements a numeric variable or attribute.",
      "syntax": "dec <name> by <amount>",
      "example": "dec count by 1",
      "example_status": "source",
      "notes": "Unwritten numeric values begin at 0.",
      "related": "set, inc"
    },
    {
      "category": "Vehicle Attributes",
      "subcategory": "",
      "title": "vehicle.id",
      "purpose": "Dense Vehicle identifier for the current Vehicle actor.",
      "syntax": "vehicle.id",
      "example": "print(vehicle.id);",
      "example_status": "source",
      "notes": "Read-only physical identity.",
      "related": "vehicle.station, vehicle.phase"
    },
    {
      "category": "Vehicle Attributes",
      "subcategory": "",
      "title": "vehicle.station / from / destination",
      "purpose": "Reads the current Station, job source and job destination from the SimulationEngine snapshot.",
      "syntax": "vehicle.station\nvehicle.from\nvehicle.destination",
      "example": "print(vehicle.station, vehicle.destination);",
      "example_status": "source",
      "notes": "Returns null when the corresponding Station is invalid/unset.",
      "related": "vehicle.phase"
    },
    {
      "category": "Vehicle Attributes",
      "subcategory": "",
      "title": "vehicle.phase / status",
      "purpose": "Returns the current physical phase as a string: idle, retrieving, pickup, moving or setdown.",
      "syntax": "vehicle.phase\nvehicle.status",
      "example": "if vehicle.phase = \"idle\" then begin\n    print \"idle vehicle \", vehicle.id to log\nend",
      "example_status": "source",
      "notes": "SimulationEngine remains the physical truth owner.",
      "related": "vehicle.station"
    },
    {
      "category": "Expressions",
      "subcategory": "",
      "title": "operators",
      "purpose": "Arithmetic, remainder, comparison and boolean operators.",
      "syntax": "+ - * / %\n= <> != < <= > >=\nand or not",
      "example": "set r = 7 % 3\nif r = 1 and vehicle.id > 0 then begin\n    print \"remainder \", r to log\nend",
      "example_status": "source",
      "notes": "% is the remainder (modulo). Division or remainder by zero stops the current event with an error. In conditions = is comparison.",
      "related": "if, while, set"
    },
    {
      "category": "Expressions",
      "subcategory": "",
      "title": "vehicle / self",
      "purpose": "Provides the current Vehicle actor surface and current actor custom-attribute surface.",
      "syntax": "vehicle.id\nvehicle.station\nvehicle.phase\nself.<custom_attribute>",
      "example": "set(self.priority, 3);\nprint(self.priority);",
      "example_status": "source",
      "notes": "Custom modeling state is script-side and does not overwrite physical Vehicle state.",
      "related": "set, configure, Vehicle Attributes"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "humanoid.color_fixed()",
      "purpose": "Turns off the pose color change so every Humanoid keeps its original model color.",
      "syntax": "call humanoid.color_fixed()",
      "example": "call humanoid.color_fixed()",
      "example_status": "source",
      "notes": "Call from model.init. Only the display color changes; motion, timing and results are unchanged. Implementation spelling: humanoid.color_fixed().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Create(name, place | name, x_m, y_m)",
      "purpose": "Creates a Humanoid at a Station/defined place or x/y (m).",
      "syntax": "call Humanoid_Create(name, place | name, x_m, y_m)",
      "example": "call Humanoid_Create(name, place | name, x_m, y_m)",
      "example_status": "source",
      "notes": "Battery starts full. Spec: gigaroute/humanoid/humanoid_spec.hpp (175 cm adult male). Implementation spelling: humanoid_create().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Define_Place(name, work_height_mm | name, x_m, y_m [, work_height_mm])",
      "purpose": "Defines a named work place for humanoid_walk_to/pick/place. Station form (name, work_height_mm) takes position/level from the Station of that name, so no coordinates are written in GRS.",
      "syntax": "call Humanoid_Define_Place(name, work_height_mm | name, x_m, y_m [, work_height_mm])",
      "example": "call Humanoid_Define_Place(name, work_height_mm | name, x_m, y_m [, work_height_mm])",
      "example_status": "source",
      "notes": "Defined places win over Station names. Default work height is 900 mm. Implementation spelling: humanoid_define_place().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Define_Obstacle(name, x1_m, y1_m, x2_m, y2_m [, level_id [, z_min_m [, z_max_m]]])",
      "purpose": "Defines a rectangular obstacle Humanoids walk around (optionally limited to a height range).",
      "syntax": "call Humanoid_Define_Obstacle(name, x1_m, y1_m, x2_m, y2_m [, level_id [, z_min_m [, z_max_m]]])",
      "example": "call Humanoid_Define_Obstacle(name, x1_m, y1_m, x2_m, y2_m [, level_id [, z_min_m [, z_max_m]]])",
      "example_status": "source",
      "notes": "On a level with at least one obstacle, humanoid_walk_to/walk/transfer plan a detour (AMR grid A*, body half-width + 50 mm clearance) and use its length x route_factor. Levels without obstacles keep straight-line x route_factor. A walk with no route is rejected. Already planned walks are not re-planned. Height range (default floor to ceiling): an obstacle blocks a Humanoid only if z_max > 0.1 m and z_min < its height, so a low curb is stepped over and an overhead beam is walked under. AMR positions at request time are treated as temporary obstacles on the walk. Implementation spelling: humanoid_define_obstacle().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Remove_Obstacle(name)",
      "purpose": "Removes an obstacle (true if it existed).",
      "syntax": "call Humanoid_Remove_Obstacle(name)",
      "example": "call Humanoid_Remove_Obstacle(name)",
      "example_status": "source",
      "notes": "Affects walks requested afterwards. Implementation spelling: humanoid_remove_obstacle().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Define_Zone(name, x1_m, y1_m, x2_m, y2_m [, capacity [, level_id]])",
      "purpose": "Defines a corridor/area that at most `capacity` (default 1) Humanoids may be walking through at once.",
      "syntax": "call Humanoid_Define_Zone(name, x1_m, y1_m, x2_m, y2_m [, capacity [, level_id]])",
      "example": "call Humanoid_Define_Zone(name, x1_m, y1_m, x2_m, y2_m [, capacity [, level_id]])",
      "example_status": "source",
      "notes": "A Humanoid entering from outside waits at the entrance until the zone has room (first-requested first-served). Only walking time inside the zone is counted; standing Humanoids and other vehicle types do not occupy it. Zones on one level must not overlap. Implementation spelling: humanoid_define_zone().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Route_Distance(robot, place)",
      "purpose": "Planned walking distance in m (obstacle detour x route_factor) without moving; -1 if unknown or unroutable.",
      "syntax": "call Humanoid_Route_Distance(robot, place)",
      "example": "call Humanoid_Route_Distance(robot, place)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_route_distance().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Zone_Wait(robot)",
      "purpose": "Total seconds the Humanoid has waited at zone entrances.",
      "syntax": "call Humanoid_Zone_Wait(robot)",
      "example": "call Humanoid_Zone_Wait(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_zone_wait().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Set(robot, parameter, value)",
      "purpose": "Overrides one spec value for one Humanoid.",
      "syntax": "call Humanoid_Set(robot, parameter, value)",
      "example": "call Humanoid_Set(robot, parameter, value)",
      "example_status": "source",
      "notes": "walk_speed/carry_speed/cart_speed/accel/decel are m/s(^2); turn_speed deg/s; payload_one_arm/payload_two_arm/item_mass kg; *_seconds, robot_time_factor, route_factor, battery_capacity_wh, battery_percent, *_power_w, low_battery_percent, mass_kg. Implementation spelling: humanoid_set().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Spec([robot,] parameter)",
      "purpose": "Returns a spec/body value (height_mm, shoulder_height_mm, max_reach_height_mm, forward_reach_mm, walk_speed, ...).",
      "syntax": "call Humanoid_Spec([robot,] parameter)",
      "example": "call Humanoid_Spec([robot,] parameter)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_spec().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Walk_To(robot, place)",
      "purpose": "Turns and walks to a Station/defined place. Returns seconds.",
      "syntax": "call Humanoid_Walk_To(robot, place)",
      "example": "call Humanoid_Walk_To(robot, place)",
      "example_status": "source",
      "notes": "Straight-line distance x route_factor with trapezoidal speed; carry/cart speeds apply automatically. Fires humanoid.arrived. Implementation spelling: humanoid_walk_to().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Walk(robot, meters)",
      "purpose": "Walks straight ahead. Returns seconds.",
      "syntax": "call Humanoid_Walk(robot, meters)",
      "example": "call Humanoid_Walk(robot, meters)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_walk().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Dispatch_Async(robot, place)",
      "purpose": "Starts a walk to a Station/defined place without suspending the caller. Returns seconds.",
      "syntax": "call Humanoid_Dispatch_Async(robot, place)",
      "example": "call Humanoid_Dispatch_Async(robot, place)",
      "example_status": "source",
      "notes": "Same physical walk as humanoid_walk_to, but the calling GRS process continues; the next leg is driven by humanoid.arrived. Implementation spelling: humanoid_dispatch_async().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Queue_Initial_Dispatch(robot, place)",
      "purpose": "Registers an initial walk during Humanoid.init. Returns true.",
      "syntax": "call Humanoid_Queue_Initial_Dispatch(robot, place)",
      "example": "call Humanoid_Queue_Initial_Dispatch(robot, place)",
      "example_status": "source",
      "notes": "Started at t=0 only after every OHT.init, AMR.init and Humanoid.init has completed (global Init barrier). Implementation spelling: humanoid_queue_initial_dispatch().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Turn(robot, degrees)",
      "purpose": "Turns in place (+ counter-clockwise). Returns seconds.",
      "syntax": "call Humanoid_Turn(robot, degrees)",
      "example": "call Humanoid_Turn(robot, degrees)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_turn().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Face(robot, place)",
      "purpose": "Turns in place to face a place or Station (absolute heading, shortest turn). Returns seconds.",
      "syntax": "call Humanoid_Face(robot, place)",
      "example": "call Humanoid_Face(robot, place)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_face().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Stairs(robot, steps)",
      "purpose": "Climbs (+) or descends (-) stair steps. Returns seconds.",
      "syntax": "call Humanoid_Stairs(robot, steps)",
      "example": "call Humanoid_Stairs(robot, steps)",
      "example_status": "source",
      "notes": "Rejected while a cart is attached. Implementation spelling: humanoid_stairs().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Pose(robot, pose)",
      "purpose": "Changes posture: stand, carry, reach_high, reach_mid, bend, crouch, kneel, sit. Returns seconds.",
      "syntax": "call Humanoid_Pose(robot, pose)",
      "example": "call Humanoid_Pose(robot, pose)",
      "example_status": "source",
      "notes": "Joint-space synchronized move; the slowest joint (trapezoidal profile) sets the time. Implementation spelling: humanoid_pose().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Pick(robot, item [, height_mm [, mass_kg]])",
      "purpose": "Aligns, takes the posture for the height, reaches, grasps and lifts an item. Returns seconds.",
      "syntax": "call Humanoid_Pick(robot, item [, height_mm [, mass_kg]])",
      "example": "call Humanoid_Pick(robot, item [, height_mm [, mass_kg]])",
      "example_status": "source",
      "notes": "Items above payload_one_arm use both hands. Height outside the reach envelope is rejected. Fires humanoid.pick_complete. Implementation spelling: humanoid_pick().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Place(robot [, item] [, height_mm])",
      "purpose": "Puts down the held item (right hand first). Returns seconds.",
      "syntax": "call Humanoid_Place(robot [, item] [, height_mm])",
      "example": "call Humanoid_Place(robot [, item] [, height_mm])",
      "example_status": "source",
      "notes": "Fires humanoid.place_complete. Implementation spelling: humanoid_place().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Transfer(robot, item, from_place, to_place [, from_height_mm, to_height_mm])",
      "purpose": "Walk + pick + walk + place in one call. Returns seconds.",
      "syntax": "call Humanoid_Transfer(robot, item, from_place, to_place [, from_height_mm, to_height_mm])",
      "example": "call Humanoid_Transfer(robot, item, from_place, to_place [, from_height_mm, to_height_mm])",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_transfer().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Handover(giver, receiver [, item])",
      "purpose": "Hands an item to another Humanoid within arm reach. Returns seconds.",
      "syntax": "call Humanoid_Handover(giver, receiver [, item])",
      "example": "call Humanoid_Handover(giver, receiver [, item])",
      "example_status": "source",
      "notes": "Both robots are busy until completion. Fires humanoid.handover_complete. Implementation spelling: humanoid_handover().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Attach_Cart(robot, cart)",
      "purpose": "Grips a cart handle; later walks use cart speed. Returns seconds.",
      "syntax": "call Humanoid_Attach_Cart(robot, cart)",
      "example": "call Humanoid_Attach_Cart(robot, cart)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_attach_cart().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Detach_Cart(robot)",
      "purpose": "Releases the cart. Returns seconds.",
      "syntax": "call Humanoid_Detach_Cart(robot)",
      "example": "call Humanoid_Detach_Cart(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_detach_cart().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Open_Door(robot [, door])",
      "purpose": "Opens a door/cover. Returns seconds.",
      "syntax": "call Humanoid_Open_Door(robot [, door])",
      "example": "call Humanoid_Open_Door(robot [, door])",
      "example_status": "source",
      "notes": "Standard time x robot_time_factor. Implementation spelling: humanoid_open_door().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Close_Door(robot [, door])",
      "purpose": "Closes a door/cover. Returns seconds.",
      "syntax": "call Humanoid_Close_Door(robot [, door])",
      "example": "call Humanoid_Close_Door(robot [, door])",
      "example_status": "source",
      "notes": "Standard time x robot_time_factor. Implementation spelling: humanoid_close_door().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Press_Button(robot [, count])",
      "purpose": "Presses a button/switch count times. Returns seconds.",
      "syntax": "call Humanoid_Press_Button(robot [, count])",
      "example": "call Humanoid_Press_Button(robot [, count])",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_press_button().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Turn_Valve(robot, turns)",
      "purpose": "Turns a valve/knob. Returns seconds.",
      "syntax": "call Humanoid_Turn_Valve(robot, turns)",
      "example": "call Humanoid_Turn_Valve(robot, turns)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_turn_valve().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Type(robot, text | character_count)",
      "purpose": "Types on an HMI/keyboard. Returns seconds.",
      "syntax": "call Humanoid_Type(robot, text | character_count)",
      "example": "call Humanoid_Type(robot, text | character_count)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_type().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Scan(robot [, target])",
      "purpose": "Reads a barcode/RFID. Returns seconds.",
      "syntax": "call Humanoid_Scan(robot [, target])",
      "example": "call Humanoid_Scan(robot [, target])",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_scan().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Inspect(robot [, seconds [, target]])",
      "purpose": "Visual inspection. Returns seconds.",
      "syntax": "call Humanoid_Inspect(robot [, seconds [, target]])",
      "example": "call Humanoid_Inspect(robot [, seconds [, target]])",
      "example_status": "source",
      "notes": "Without seconds uses inspect_seconds x robot_time_factor. Implementation spelling: humanoid_inspect().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Fasten(robot [, count])",
      "purpose": "Fastens bolts/screws. Returns seconds.",
      "syntax": "call Humanoid_Fasten(robot [, count])",
      "example": "call Humanoid_Fasten(robot [, count])",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_fasten().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Tool_Change(robot [, tool])",
      "purpose": "Changes a hand tool. Returns seconds.",
      "syntax": "call Humanoid_Tool_Change(robot [, tool])",
      "example": "call Humanoid_Tool_Change(robot [, tool])",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_tool_change().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Work(robot, seconds [, label])",
      "purpose": "Any other job for a fixed time (manual assembly, cleaning, ...). Returns seconds.",
      "syntax": "call Humanoid_Work(robot, seconds [, label])",
      "example": "call Humanoid_Work(robot, seconds [, label])",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_work().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Wait(robot, seconds)",
      "purpose": "Idles for a fixed time. Returns seconds.",
      "syntax": "call Humanoid_Wait(robot, seconds)",
      "example": "call Humanoid_Wait(robot, seconds)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_wait().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Charge(robot [, target_percent])",
      "purpose": "Charges the battery to target (default 100%). Returns seconds.",
      "syntax": "call Humanoid_Charge(robot [, target_percent])",
      "example": "call Humanoid_Charge(robot [, target_percent])",
      "example_status": "source",
      "notes": "Fires humanoid.charged. Implementation spelling: humanoid_charge().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Joint(robot, joint_name, degrees)",
      "purpose": "Moves one joint to an absolute angle. Returns seconds.",
      "syntax": "call Humanoid_Joint(robot, joint_name, degrees)",
      "example": "call Humanoid_Joint(robot, joint_name, degrees)",
      "example_status": "source",
      "notes": "Joint limits and motion speed follow humanoid_spec.hpp. Implementation spelling: humanoid_joint().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Joints(robot, joint_name, degrees [, joint_name, degrees ...])",
      "purpose": "Moves multiple joints simultaneously. Returns seconds.",
      "syntax": "call Humanoid_Joints(robot, joint_name, degrees [, joint_name, degrees ...])",
      "example": "call Humanoid_Joints(robot, joint_name, degrees [, joint_name, degrees ...])",
      "example_status": "source",
      "notes": "The slowest joint determines the synchronized duration. Implementation spelling: humanoid_joints().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Location(robot)",
      "purpose": "Returns the current place name or null.",
      "syntax": "call Humanoid_Location(robot)",
      "example": "call Humanoid_Location(robot)",
      "example_status": "source",
      "notes": "Committed place (the destination while walking). Implementation spelling: humanoid_location().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_X(robot)",
      "purpose": "Returns x (m).",
      "syntax": "call Humanoid_X(robot)",
      "example": "call Humanoid_X(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_x().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Y(robot)",
      "purpose": "Returns y (m).",
      "syntax": "call Humanoid_Y(robot)",
      "example": "call Humanoid_Y(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_y().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Z(robot)",
      "purpose": "Returns z (m) at the Humanoid position.",
      "syntax": "call Humanoid_Z(robot)",
      "example": "call Humanoid_Z(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_z().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Level(robot)",
      "purpose": "Returns the Level ID the Humanoid stands on.",
      "syntax": "call Humanoid_Level(robot)",
      "example": "call Humanoid_Level(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_level().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Holding(robot [, hand])",
      "purpose": "Returns the held item (left/right/any) or null.",
      "syntax": "call Humanoid_Holding(robot [, hand])",
      "example": "call Humanoid_Holding(robot [, hand])",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_holding().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Free_Hands(robot)",
      "purpose": "Returns the number of free hands (0..2).",
      "syntax": "call Humanoid_Free_Hands(robot)",
      "example": "call Humanoid_Free_Hands(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_free_hands().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Battery(robot)",
      "purpose": "Returns battery percent.",
      "syntax": "call Humanoid_Battery(robot)",
      "example": "call Humanoid_Battery(robot)",
      "example_status": "source",
      "notes": "Fires humanoid.battery_low when crossing low_battery_percent. Implementation spelling: humanoid_battery().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Busy(robot)",
      "purpose": "Returns true until the current action ends.",
      "syntax": "call Humanoid_Busy(robot)",
      "example": "call Humanoid_Busy(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_busy().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_State(robot)",
      "purpose": "Returns the current action name or idle.",
      "syntax": "call Humanoid_State(robot)",
      "example": "call Humanoid_State(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_state().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Posture(robot)",
      "purpose": "Returns the current posture name.",
      "syntax": "call Humanoid_Posture(robot)",
      "example": "call Humanoid_Posture(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_posture().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Distance(robot)",
      "purpose": "Returns walked distance (m).",
      "syntax": "call Humanoid_Distance(robot)",
      "example": "call Humanoid_Distance(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_distance().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Utilization(robot)",
      "purpose": "Returns busy time / elapsed time since creation (0..1).",
      "syntax": "call Humanoid_Utilization(robot)",
      "example": "call Humanoid_Utilization(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_utilization().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Actions(robot)",
      "purpose": "Returns completed action count.",
      "syntax": "call Humanoid_Actions(robot)",
      "example": "call Humanoid_Actions(robot)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_actions().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Last_Error(robot)",
      "purpose": "Returns the last rejection reason or null.",
      "syntax": "call Humanoid_Last_Error(robot)",
      "example": "call Humanoid_Last_Error(robot)",
      "example_status": "source",
      "notes": "Rejected actions return 0 seconds and fire humanoid.rejected. Implementation spelling: humanoid_last_error().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Self()",
      "purpose": "Inside a humanoid.* event returns the Humanoid name.",
      "syntax": "call Humanoid_Self()",
      "example": "call Humanoid_Self()",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_self().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Event_Action()",
      "purpose": "Inside a humanoid.* event returns the action name.",
      "syntax": "call Humanoid_Event_Action()",
      "example": "call Humanoid_Event_Action()",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_event_action().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Event_Place()",
      "purpose": "Inside a Humanoid passing station event returns the place name that was just passed (lower case).",
      "syntax": "call Humanoid_Event_Place()",
      "example": "call Humanoid_Event_Place()",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_event_place().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Count()",
      "purpose": "Returns the number of Humanoids in this module.",
      "syntax": "call Humanoid_Count()",
      "example": "call Humanoid_Count()",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_count().",
      "related": "Humanoid"
    },
    {
      "category": "Humanoid Functions",
      "subcategory": "",
      "title": "Humanoid_Joint_Deg(robot, joint_name)",
      "purpose": "Returns the committed target angle of one Humanoid joint.",
      "syntax": "call Humanoid_Joint_Deg(robot, joint_name)",
      "example": "call Humanoid_Joint_Deg(robot, joint_name)",
      "example_status": "source",
      "notes": "Implemented runtime callable. Implementation spelling: humanoid_joint_deg().",
      "related": "Humanoid"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.id [OHT, AMR]",
      "purpose": "Returns the dense runtime Vehicle/Robot ID.",
      "syntax": "vehicle.id",
      "example": "print(vehicle.id);",
      "example_status": "source",
      "notes": "Type: Number. Access: read-only. Modules: OHT, AMR. Physical runtime identity; not a user-defined attribute.",
      "related": "OHT, AMR"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.station [OHT, AMR]",
      "purpose": "Returns the current/last Station index.",
      "syntax": "vehicle.station",
      "example": "print(vehicle.station);",
      "example_status": "source",
      "notes": "Type: Number or null. Access: read-only. Modules: OHT, AMR. Alias vehicle.location resolves to the same value.",
      "related": "vehicle.location"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.from [OHT, AMR]",
      "purpose": "Returns the current Job source Station index.",
      "syntax": "vehicle.from",
      "example": "print(vehicle.from);",
      "example_status": "source",
      "notes": "Type: Number or null. Access: read-only. Modules: OHT, AMR.",
      "related": "vehicle.fromstation"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.destination [OHT, AMR]",
      "purpose": "Returns the current destination Station index.",
      "syntax": "vehicle.destination",
      "example": "print(vehicle.destination);",
      "example_status": "source",
      "notes": "Type: Number or null. Access: read-only. Modules: OHT, AMR.",
      "related": "vehicle.destinationstation"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.phase [OHT, AMR]",
      "purpose": "Returns the authoritative runtime phase/status text.",
      "syntax": "vehicle.phase",
      "example": "print(vehicle.phase);",
      "example_status": "source",
      "notes": "Type: String. Access: read-only. Modules: OHT, AMR. Alias vehicle.status resolves to the same value.",
      "related": "vehicle.status"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.current_speed [OHT, AMR]",
      "purpose": "Returns authoritative current linear speed.",
      "syntax": "vehicle.current_speed",
      "example": "print(vehicle.current_speed);",
      "example_status": "source",
      "notes": "Type: Number (mm/s). Access: read-only. Modules: OHT, AMR. OHT reads the Rail Vehicle motion speed; AMR reads the robot linear speed.",
      "related": "vehicle.speed / vehicle.velocity"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.remaining_distance [OHT, AMR]",
      "purpose": "Returns remaining distance on the current route.",
      "syntax": "vehicle.remaining_distance",
      "example": "print(vehicle.remaining_distance);",
      "example_status": "source",
      "notes": "Type: Number (mm). Access: read-only. Modules: OHT, AMR. Zero is valid at a destination or when no route is active.",
      "related": "vehicle.route_remaining / vehicle.route_remaining_distance"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.x [OHT, AMR]",
      "purpose": "Returns current world X position.",
      "syntax": "vehicle.x",
      "example": "print(vehicle.x);",
      "example_status": "source",
      "notes": "Type: Number (mm). Access: read-only. Modules: OHT, AMR.",
      "related": "vehicle.x_mm"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.y [OHT, AMR]",
      "purpose": "Returns current world Y position.",
      "syntax": "vehicle.y",
      "example": "print(vehicle.y);",
      "example_status": "source",
      "notes": "Type: Number (mm). Access: read-only. Modules: OHT, AMR.",
      "related": "vehicle.y_mm"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.heading [OHT, AMR]",
      "purpose": "Returns current heading in radians.",
      "syntax": "vehicle.heading",
      "example": "print(vehicle.heading);",
      "example_status": "source",
      "notes": "Type: Number (rad) or null. Access: read-only. Modules: OHT, AMR. OHT can return null only when a legacy snapshot has no authoritative heading.",
      "related": "vehicle.heading_rad"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.rotating_in_place [OHT, AMR]",
      "purpose": "Returns true while the runtime is rotating in place.",
      "syntax": "vehicle.rotating_in_place",
      "example": "print(vehicle.rotating_in_place);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: OHT, AMR.",
      "related": "OHT, AMR"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.current_path [OHT]",
      "purpose": "Returns the directed Rail Path ID currently occupied by the OHT.",
      "syntax": "vehicle.current_path",
      "example": "print(vehicle.current_path);",
      "example_status": "source",
      "notes": "Type: Number or null. Access: read-only. Modules: OHT. AMR free-floor motion has no equivalent Rail Path ID.",
      "related": "vehicle.path"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.has_assigned_job [OHT]",
      "purpose": "Returns whether the physical OHT owns a real transport Job.",
      "syntax": "vehicle.has_assigned_job",
      "example": "print(vehicle.has_assigned_job);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: OHT. This is physical Job ownership, not merely a script custom attribute.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.service_remaining_seconds [OHT]",
      "purpose": "Returns remaining Pickup/Setdown service time.",
      "syntax": "vehicle.service_remaining_seconds",
      "example": "print(vehicle.service_remaining_seconds);",
      "example_status": "source",
      "notes": "Type: Number (s). Access: read-only. Modules: OHT. Returns zero outside Pickup/Setdown.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.service_duration_seconds [OHT]",
      "purpose": "Returns configured duration of the active Pickup/Setdown service phase.",
      "syntax": "vehicle.service_duration_seconds",
      "example": "print(vehicle.service_duration_seconds);",
      "example_status": "source",
      "notes": "Type: Number (s). Access: read-only. Modules: OHT. Returns zero outside Pickup/Setdown.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.angular_speed [AMR]",
      "purpose": "Returns current AMR angular speed.",
      "syntax": "vehicle.angular_speed",
      "example": "print(vehicle.angular_speed);",
      "example_status": "source",
      "notes": "Type: Number (rad/s). Access: read-only. Modules: AMR.",
      "related": "vehicle.angular_speed_rad_s"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.z [AMR]",
      "purpose": "Returns current AMR 2.5D elevation.",
      "syntax": "vehicle.z",
      "example": "print(vehicle.z);",
      "example_status": "source",
      "notes": "Type: Number (mm). Access: read-only. Modules: AMR.",
      "related": "vehicle.z_mm"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.traffic_state [AMR]",
      "purpose": "Returns AMR traffic state text (Cruise/Slow/Stop).",
      "syntax": "vehicle.traffic_state",
      "example": "print(vehicle.traffic_state);",
      "example_status": "source",
      "notes": "Type: String. Access: read-only. Modules: AMR.",
      "related": "vehicle.traffic"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.schedjobs [OHT]",
      "purpose": "Returns the alive ScheduleJobs associated with the OHT Vehicle.",
      "syntax": "vehicle.schedjobs",
      "example": "print(vehicle.schedjobs.size);",
      "example_status": "source",
      "notes": "Type: List<ScheduleJob>. Access: read-only. Modules: OHT. AMR automatic dispatch does not expose this OHT ScheduleJob list.",
      "related": "vehicle.schedulejobs"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.current_schedjob [OHT]",
      "purpose": "Gets or selects the current OHT ScheduleJob.",
      "syntax": "vehicle.current_schedjob",
      "example": "set(vehicle.current_schedjob, job);",
      "example_status": "source",
      "notes": "Type: ScheduleJob or null. Access: read/write. Modules: OHT. Only a live job owned by the same Vehicle can be selected.",
      "related": "vehicle.currentschedjob"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.battery [AMR]",
      "purpose": "Returns AMR battery percentage.",
      "syntax": "vehicle.battery",
      "example": "print(vehicle.battery);",
      "example_status": "source",
      "notes": "Type: Number. Access: read-only. Modules: AMR. OHT does not expose a battery attribute through this Host.",
      "related": "vehicle.batterypercent"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.blocked_by [OHT, AMR]",
      "purpose": "Returns the directly recorded leader/blocker Vehicle, or null when not currently blocked.",
      "syntax": "vehicle.blocked_by",
      "example": "print(vehicle.blocked_by);",
      "example_status": "source",
      "notes": "Type: Vehicle or null. Access: read-only. Modules: OHT, AMR. Only the Core-recorded direct blocker is returned. Dependency chains and root cause are not inferred.",
      "related": "OHT, AMR"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.blocked_since_seconds [OHT, AMR]",
      "purpose": "Returns the simulation time this Vehicle began waiting on its current blocked_by, or null when not blocked.",
      "syntax": "vehicle.blocked_since_seconds",
      "example": "print(vehicle.blocked_since_seconds);",
      "example_status": "source",
      "notes": "Type: Number (s) or null. Access: read-only. Modules: OHT, AMR.",
      "related": "OHT, AMR"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.blocked_elapsed_seconds [OHT, AMR]",
      "purpose": "Returns current simulation time minus blocked_since_seconds, or null when not blocked.",
      "syntax": "vehicle.blocked_elapsed_seconds",
      "example": "print(vehicle.blocked_elapsed_seconds);",
      "example_status": "source",
      "notes": "Type: Number (s) or null. Access: read-only. Modules: OHT, AMR. Computed on read from the existing blocked_since timestamp; no extra polling state is created.",
      "related": "OHT, AMR"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "vehicle.waiting_for_station [AMR]",
      "purpose": "Returns true while the AMR finished loading/unloading but is waiting for its destination Station slot to free.",
      "syntax": "vehicle.waiting_for_station",
      "example": "print(vehicle.waiting_for_station);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: AMR. Event-driven: re-evaluated only when the Station frees, not polled.",
      "related": "AMR"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.id [OHT]",
      "purpose": "Returns the script Load ID.",
      "syntax": "load.id",
      "example": "print(load.id);",
      "example_status": "source",
      "notes": "Type: Number. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.name [OHT]",
      "purpose": "Returns the script Load name.",
      "syntax": "load.name",
      "example": "print(load.name);",
      "example_status": "source",
      "notes": "Type: String. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.vehicle [OHT]",
      "purpose": "Returns the claimed/onboard Vehicle handle.",
      "syntax": "load.vehicle",
      "example": "print(load.vehicle);",
      "example_status": "source",
      "notes": "Type: Vehicle or null. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.location [OHT]",
      "purpose": "Returns or supplies the off-Vehicle source/location Station.",
      "syntax": "load.location",
      "example": "print(load.location);",
      "example_status": "source",
      "notes": "Type: Number or null. Access: read/write. Modules: OHT. Writes participate in pending scripted transport endpoint binding.",
      "related": "load.from / load.source aliases are accepted by transport binding"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.destination [OHT]",
      "purpose": "Returns or supplies the active delivery destination Station.",
      "syntax": "load.destination",
      "example": "print(load.destination);",
      "example_status": "source",
      "notes": "Type: Number or null. Access: read/write. Modules: OHT. Writes participate in pending scripted transport endpoint binding.",
      "related": "load.to / load.target aliases are accepted by transport binding"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.onboard [OHT]",
      "purpose": "Returns true while the Load is physically onboard its carrier.",
      "syntax": "load.onboard",
      "example": "print(load.onboard);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.alive [OHT]",
      "purpose": "Returns whether the script Load is live.",
      "syntax": "load.alive",
      "example": "print(load.alive);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "load.state [OHT]",
      "purpose": "Returns created, claimed, onboard, or stored.",
      "syntax": "load.state",
      "example": "print(load.state);",
      "example_status": "source",
      "notes": "Type: String. Access: read-only. Modules: OHT. Derived from current script material ownership/location.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.id [OHT]",
      "purpose": "Returns the stable ScheduleJob ID.",
      "syntax": "job.id",
      "example": "print(job.id);",
      "example_status": "source",
      "notes": "Type: Number. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.type [OHT]",
      "purpose": "Returns current move/retrieve/deliver job type.",
      "syntax": "job.type",
      "example": "print(job.type);",
      "example_status": "source",
      "notes": "Type: String. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.vehicle [OHT]",
      "purpose": "Returns the owning Vehicle.",
      "syntax": "job.vehicle",
      "example": "print(job.vehicle);",
      "example_status": "source",
      "notes": "Type: Vehicle or null. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.load [OHT]",
      "purpose": "Returns the associated Load for material jobs.",
      "syntax": "job.load",
      "example": "print(job.load);",
      "example_status": "source",
      "notes": "Type: Load or null. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.location [OHT]",
      "purpose": "Returns or changes the target Station of an uncommitted job.",
      "syntax": "job.location",
      "example": "print(job.location);",
      "example_status": "source",
      "notes": "Type: Number or null. Access: read/write before commit. Modules: OHT. Committed physical jobs reject location rewrites.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.released_us [OHT]",
      "purpose": "Returns the script release time in microseconds.",
      "syntax": "job.released_us",
      "example": "print(job.released_us);",
      "example_status": "source",
      "notes": "Type: Number. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.alive [OHT]",
      "purpose": "Returns whether the ScheduleJob is live.",
      "syntax": "job.alive",
      "example": "print(job.alive);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.current [OHT]",
      "purpose": "Returns whether the ScheduleJob is selected as current work.",
      "syntax": "job.current",
      "example": "print(job.current);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: OHT.",
      "related": "OHT"
    },
    {
      "category": "Attribute Reference",
      "subcategory": "",
      "title": "job.physical_committed [OHT]",
      "purpose": "Returns true once SimulationEngine already owns the physical route for this ScheduleJob.",
      "syntax": "job.physical_committed",
      "example": "print(job.physical_committed);",
      "example_status": "source",
      "notes": "Type: Bool. Access: read-only. Modules: OHT. #30 P4: source/destination Station, assigned/pickup/setdown/completed timestamps, and cancel state/reason are Not Implemented as ScheduleJob Attributes -- the current ScheduleJob struct does not own that state, and this Issue does not fabricate a sidecar owner for it.",
      "related": "OHT"
    }
  ]
}
