# Stop-command travel

M-001 · Version 0.1 · Working draft · 15 Research Lab

How far does the carriage move after the stop request appears on the measurement clock?

## Scope

A marked carriage travels in one direction on a bounded, straight test axis with a surrogate load. Observe one stop request and the first sustained standstill. Keep the request channel distinct from controller acknowledgement.

![Measurement geometry](geometry.svg)

## Apparatus

- A rigid rail, a carriage with a visible reference mark and a fixed millimetre scale in the plane of motion.
- A fixed camera or linear encoder, plus a recorded request indicator. Put both channels on one clock or document their measured offset and jitter.

## Keep fixed

- Fix the payload, start zone, approach direction, commanded mode, rail inclination and surface. Record the approach speed measured before each request.
- Before capture, declare the position band, minimum dwell and observation timeout used to recognize standstill. Give each change of setup a separate run ID.

## Calibration and checks

Record the length reference ID, scale residuals, marker resolution and clock alignment. Repeat the length and stationary-marker checks after the run. Record any drift and the decision about affected trials.

## Sampling and timing

Record the actual sample intervals and identify dropped samples. State the request indicator’s delay relative to its source. The result starts at the observed request. Preserve pre-request samples for the approach-speed estimate and post-event samples for the whole dwell.

## Procedure

1. Register the positive axis in the direction of approach. Record the stationary marker and a scale check at both ends of the measurement region.
2. Record position and the request channel before approach and through the dwell. Take the position at the first sample showing the asserted request as x_request.
3. Starting at the request, find the first full dwell whose maximum position minus its minimum is within the declared band. Use its first position and timestamp as x_rest and t_rest. Preserve the entire dwell as evidence.
4. For monotone travel, subtract x_request from x_rest. Keep both readings, the two timestamps, the recorded approach speed and the validity decision for each attempt.

## Calculation

travel_mm = x_rest_mm − x_request_mm

## Exclusions

A missing event, clipped or unreadable marker, incomplete dwell, or a reversal beyond the declared position band prevents a valid distance. Keep the attempt and reason. Record failure to reach standstill by timeout separately. A rerun receives a new trial ID.

## Uncertainty

Estimate position scale and tracking errors at both events, the effect of selecting the request frame, and the consequence of the chosen rest band. A common datum offset cancels in the subtraction. Scale or timing errors can remain. Report run-to-run or trial spread separately.

A reference for describing uncertainty components and the basis of a quoted interval is [NIST Technical Note 1297, section 7](https://www.nist.gov/pml/nist-technical-note-1297/nist-tn-1297-7-reporting-uncertainty).

## Interpretation

This one-axis value covers motion between two observed events. It omits upstream sensing delay, the swept volume of the tool and any post-dwell restart. An application-specific assessment determines how to use it.

## Start a run

In a new run directory, save `run.template.json` as `run.json` and `trials.template.csv` as `trials.csv`. Set `source_type` to `empirical` for instrument observations or `synthetic` for authored examples. Assign stable run and trial IDs, record the method edition and fill in the setup and calibration fields before collecting observations. Record actual timing and deviations after capture.

Keep the device’s original recording. For each attempt, `trace.template.csv` provides a common table for exporting sampled observations. Link the trial to a capture, channel and time interval through `source_ref`. Store manual annotations and calculation outputs separately from the original capture.

### Trial table

| Field | Record |
| --- | --- |
| `trial_id` | Unique attempt ID within a run, including excluded attempts. |
| `source_ref` | Capture file plus frame or sample locator. Synthetic event pairs use an authored record locator. |
| `t_request_s` | First observed assertion on the run clock, in seconds. |
| `x_request_mm` | Marker coordinate at that assertion, in millimetres. |
| `t_rest_s` | First sample of the qualifying dwell, in seconds. |
| `x_rest_mm` | Marker coordinate at that first dwell sample, in millimetres. |
| `approach_speed_mm_s` | Measured mean velocity over the declared pre-request interval, in millimetres per second. |
| `status` | Use valid or excluded after reviewing the capture. |
| `reason` | Required for an exclusion. Leave unavailable observations empty. |

### Trace table

| Field | Record |
| --- | --- |
| `t_s` | Sample timestamp on the observation clock. |
| `x_mm` | Marker position along the positive test axis. |
| `request_asserted` | 0 or 1 for the observed request indicator. |
| `tracking_ok` | 0 or 1. Preserve dropped, lost or uncertain samples and explain them. |

## Publish a finding

Cite the method ID and version. Describe the apparatus and recorded conditions, state how many attempts were made, and give each exclusion and reason. Keep readings, derived quantities, uncertainty and interpretation identifiable. Attach the calibration evidence and the analysis used to produce the published figure.

### F-001 · The distance after a stop request

Synthetic example. These authored observations demonstrate subtraction, exclusions and reporting. They provide no estimate of a robot’s stopping performance or measurement uncertainty.

The observations are in `f001/trials.csv`. The run record is `f001/run.json`. Recalculate the result from the method directory with Python 3.

```sh
python3 analyze.py f001/run.json
```

The script writes JSON to standard output. The archived output is `f001/summary.json`. The included SHA-256 digest identifies the exact input CSV.

## Reuse

Credit 15 Research Lab, name the method and edition, link to the license and identify your changes when sharing an adaptation. The original guide, measurement drawing, metadata, capture templates and example data in this package are available under Creative Commons Attribution 4.0 International. Any included Python code uses the MIT License. These grants cover the named measurement materials. The lab’s photographs, identity, typefaces and other site assets have separate rights.

[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · [MIT License](https://opensource.org/license/mit)
