Skip to main content

ScenarioTableCoverageScenario

Robotics scenarios · Implementation: mlsysim/engine/scenario_definitions/robotics/demonstrations.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

A scenario table of offsets by speeds joined against an archive demonstrated within logged_offset at demonstrated_speed, plus recovery collections at added_offsets.

Notes

Equation: Supported cells require the demonstrated speed and an offset in the logged interval or added set.

Assumptions: Exact discrete matching, with no extrapolation between speed values.

Excludes: A claim of safety or generalization outside demonstrated cells.

References

Derivation: Support is an explicit set-membership rule on discrete offset/speed pairs: speed must match exactly, and offset must lie within the logged interval or the supplied added set. Enumerating the Cartesian table counts support; subtraction counts absence.

Examples

The named registry scenario supplies the stated inputs; this is a modeled calculation, not a new measurement.

>>> from mlsysim import Scenarios
>>> scenario = Scenarios.LatchScenarioTable
>>> scenario.supported
1

Attributes

Name Description
absences Number of unsupported combinations: total cells minus supported cells.
added_offsets
cells Number of offset/speed combinations in the Cartesian scenario table.
demonstrated_speed
logged_offset
offsets
speeds
supported Count of table cells satisfying the exact support predicate; no interpolation across speed is assumed.

Methods

Name Description
supported_cell Whether an offset/speed pair lies on the demonstrated speed and inside the logged offset interval or explicit added offsets.

supported_cell

engine.scenario_types.ScenarioTableCoverageScenario.supported_cell(
    offset,
    speed,
)

Whether an offset/speed pair lies on the demonstrated speed and inside the logged offset interval or explicit added offsets.

Equation: The calculation follows the stated accounting rule; the method body shows each intermediate term.

offsets

Type: List[Quantity].

Declared default: required.

speeds

Type: List[Quantity].

Declared default: required.

logged_offset

Type: Quantity.

Declared default: required.

demonstrated_speed

Type: Quantity.

Declared default: required.

added_offsets

Type: List[Quantity].

Declared default: [].

cells

engine.scenario_types.ScenarioTableCoverageScenario.cells

Number of offset/speed combinations in the Cartesian scenario table.

Equation: len(self.offsets) * len(self.speeds)

supported

engine.scenario_types.ScenarioTableCoverageScenario.supported

Count of table cells satisfying the exact support predicate; no interpolation across speed is assumed.

Equation: sum((self.supported_cell(d, v) for d in self.offsets for v in self.speeds))

absences

engine.scenario_types.ScenarioTableCoverageScenario.absences

Number of unsupported combinations: total cells minus supported cells.

Equation: self.cells - self.supported

Back to top