Skip to content

specs/worlds/hallways.feature

Explanatory catalog examples; parser validation is not runtime execution.

Download original Gherkin

# SPDX-License-Identifier: Apache-2.0
@hallway_fixture
Feature: Open hallway world
  The selected open hallway retains its own geometry, named-place, and collision expectations.

  Scenario Outline: An integrator selects the open hallway by name and version
    Given hallway world "hallway-open" at content version "0.1.0"
    And simulator <simulator> with a versioned adapter
    When the integrator selects the world by configuration only
    Then the consumer loads it without simulator code changes
    And an unknown world identifier or version is reported, not substituted

    Examples:
      | simulator |
      | MuJoCo    |
      | Gazebo    |

  Scenario Outline: A scenario author uses the declared hallway places
    Given hallway world "hallway-open" at content version "0.1.0"
    And simulator <simulator> with a versioned adapter
    When the consumer reports the entrance, exit, passage, passage-centreline, and spawn places
    Then each place matches the canonical world-frame values within 0.01 m and 0.5 degrees

    Examples:
      | simulator |
      | MuJoCo    |
      | Gazebo    |

  Scenario: A verifier compares MuJoCo and Gazebo hallway evidence
    Given hallway world "hallway-open" at content version "0.1.0" loaded in MuJoCo and in Gazebo
    When a verifier runs the dimension, named-place, floor, side-wall, and open-end checks in each engine
    Then each engine is within tolerance of the canonical values
    And a cross-engine agreement check lists each quantity's canonical value, both measured values, and their difference

  Scenario: A reviewer inspects retained hallway results from both engines
    Given a completed MuJoCo and Gazebo evaluation of "hallway-open" at content version "0.1.0"
    When a reviewer opens the review record
    Then it shows an overhead and an entrance-view screenshot from each engine and the test results
    And it identifies the world version, world contract revision, catalog version, and adapter versions

  Scenario Outline: A consumer meets an unsupported hallway feature
    Given hallway world "hallway-open" declares a feature that simulator <simulator> cannot load
    When the consumer loads the world
    Then it returns UNSUPPORTED naming the world, version, and feature
    And it does not report a pass with the feature ignored

    Examples:
      | simulator |
      | MuJoCo    |
      | Gazebo    |