Skip to content

specs/scenarios/walk-hallway/walk-hallway.feature

Explanatory catalog examples; parser validation is not runtime execution.

Download original Gherkin

# SPDX-License-Identifier: Apache-2.0
@walk_hallway
Feature: Walk the open hallway
  A robot uses the controller in its selected configuration profile to walk from the entrance to the exit.
  One run is one or more identical trials under the run manifest. The default is one trial at the exact nominal pose.

  Scenario Outline: A robot walks the open hallway
    Given world "hallway-open" at its pinned version in simulator <simulator>
    And robot <robot> with configuration profile <configuration>
    And the robot stands at the exact nominal pose "spawn-entrance" facing the exit
    When the controller is commanded to walk forward at the README parameter command_speed
    Then the robot's base crosses "exit" within the README parameter time_limit
    And no robot body touches either side wall
    And the base height never drops below the README parameter fall_height, the selected configuration profile's locomotion.fall_base_height
    And the base stays within the README parameter lateral_limit, clear width ÷ 2 − robot width ÷ 2, of the centreline

    Examples:
      | simulator | robot       | configuration |
      | MuJoCo    | unitree-g1  | playground    |
      | MuJoCo    | unitree-go1 | playground    |
      | MuJoCo    | booster-t1  | playground    |

  Scenario Outline: The verifier assesses each trial with the hallway evaluators
    Given the observations of one walk-hallway trial
    And thresholds resolved from the robot profile and the selected configuration profile
    When evaluator "<evaluator>" assesses observation "<observation>"
    Then the assessment is FAIL when the observation <rule> <threshold>
    And a missing or malformed observation is a test-system ERROR on the trial
    And the rationale names the check, the time and the margin

    Examples:
      | evaluator             | observation     | rule                     | threshold     |
      | hallway-exit-reached  | exit_time       | is absent or later than  | time_limit    |
      | hallway-lateral-limit | max_abs_lateral | is greater than          | lateral_limit |
      | hallway-wall-contact  | wall_contacts   | lists any contact        | an empty list |
      | hallway-fall          | min_base_height | is less than             | fall_height   |

  Scenario: A trial passes only when every hallway evaluator passes
    Given the four hallway assessments of one trial
    When policy "all-required-v1" is applied
    Then any FAIL makes the trial FAIL even when another observation is missing
    And the missing observation is still reported as a test-system ERROR on the trial

  Scenario Outline: A grading policy turns trial outcomes into the run grade
    Given a walk-hallway run of <trials> identical trials at the nominal start
    And <passed> of those trials have outcome PASS and <failed> have outcome FAIL
    And <errors> trials are test-system ERROR and did not complete
    When the grading policy is applied to the completed trials
    Then the run grade is <grade>
    And each ERROR is reported on the job and on the trial and is never a robot grade
    And if no trial completes the run is not evaluated and the grade is INSUFFICIENT_EVIDENCE

    Examples:
      | trials | passed | failed | errors | grade                 |
      | 1      | 1      | 0      | 0      | PASS                  |
      | 1      | 0      | 1      | 0      | FAIL                  |
      | 1      | 0      | 0      | 1      | INSUFFICIENT_EVIDENCE |

  Scenario: Repeated trials are reported in full
    Given a walk-hallway run of identical trials under one fixed setup
    When the run is reported
    Then every trial is listed with its outcome and its first failing metric
    And a test-system ERROR is reported on the job and on the trial and is excluded from the run grade

  Scenario: Disagreeing repeats are a reproducibility finding
    Given a deterministic simulator and a walk-hallway run of identical trials
    When two trials in that run disagree
    Then the disagreement is reported as a reproducibility finding about the test system
    And it is never counted as a robot fail

  Scenario Outline: A robot that cannot meet the preconditions
    Given a <robot_class> robot of width <width_m> metres, so wall_clearance is <wall_clearance_m> metres
    And the hallway clear width is <clear_width_m> metres
    When a run is requested
    Then the grade is UNSUPPORTED naming precondition "fits_width"
    And no trial is run

    Examples:
      | robot_class | width_m | wall_clearance_m | clear_width_m |
      | humanoid    | 1.41  | 0.05             | 1.5         |
      | quadruped   | 1.31  | 0.10             | 1.5         |

  Scenario Outline: A robot that meets fits_width is run
    Given a <robot_class> robot of width <width_m> metres, so wall_clearance is <wall_clearance_m> metres
    And the hallway clear width is <clear_width_m> metres
    When a run is requested
    Then precondition "fits_width" is met and the planned trials run

    Examples:
      | robot_class | width_m | wall_clearance_m | clear_width_m |
      | humanoid    | 0.52  | 0.05             | 1.5         |
      | humanoid    | 1.40  | 0.05             | 1.5         |
      | quadruped   | 0.282 | 0.10             | 1.5         |