Skip to main content

OnsetTrialScenario

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

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

A stopping trace that begins braking at onset after the reference event of oracle.

oracle is a StoppingBudgetScenario whose delay is the onset bound (no site allowances), with a jerk bound and a tracking inset: its required distance is the travel bound, and its delay travel plus S-curve stop is the travel of an on-time trace.

Notes

Equation: Composition of mlsysim.solvers.OnsetTrialModel.solve.

Assumptions: Inputs are routed to OnsetTrialModel.solve; their documented regimes and units apply to this configuration.

Excludes: Additional mechanisms beyond the linked solver contracts; the scenario does not collect measurements.

References

Derivation: This scenario binds named inputs to OnsetTrialModel. The linked solver contracts own equations, sources, and result-unit definitions.

Examples

Evaluate the named configuration and display a modeled result.

>>> from mlsysim import Scenarios
>>> case = Scenarios.WarehouseRenewalStopLateOnsetTrial
>>> value = case.result.distance_margin
>>> print(f"{value:.3g~}")
1 mm

Attributes

Name Description
lease
onset
oracle
probe_after_expiry
probe_at Replay arrival time in ms after lease expiry; None if lease or replay offset is unspecified.
result Evaluate the stated onset trial case through OnsetTrialModel.solve; returns its typed result and quantity units.

oracle

Type: StoppingBudgetScenario.

Declared default: required.

onset

Type: Quantity.

Declared default: required.

lease

Type: Optional[Quantity].

Declared default: None.

probe_after_expiry

Type: Optional[Quantity].

Declared default: None.

probe_at

engine.scenario_types.OnsetTrialScenario.probe_at

Replay arrival time in ms after lease expiry; None if lease or replay offset is unspecified.

When the replayed renewal arrives, after the last valid renewal.

Equation: (lease + probe_after_expiry).to('ms'); otherwise None.

result

engine.scenario_types.OnsetTrialScenario.result

Evaluate the stated onset trial case through OnsetTrialModel.solve; returns its typed result and quantity units.

Calculation: mlsysim.solvers.OnsetTrialModel.solve.

Back to top