step.calibration.sensors.switch_set_step_dsl

Auto-generated step builders and DSL functions — DO NOT EDIT.

Source: switch_set_step.py

Classes

SwitchCalibrationSetBuilder

Builder for SwitchCalibrationSet. Auto-generated — do not edit.

Functions

switch_calibration_set([set_name])

Switch IR sensors to a named calibration set.

Module Contents

class step.calibration.sensors.switch_set_step_dsl.SwitchCalibrationSetBuilder

Bases: raccoon.step.step_builder.StepBuilder

Builder for SwitchCalibrationSet. Auto-generated — do not edit.

set_name(value: str)
step.calibration.sensors.switch_set_step_dsl.switch_calibration_set(set_name: str = 'default')

Switch IR sensors to a named calibration set.

Loads calibration data for the given set name from the calibration store and applies it to all registered IR sensors. Each sensor looks up its per-port calibration key (e.g. "transparent_port3") and sets its black/white thresholds accordingly.

Use this to swap between surface-specific calibrations at runtime (e.g. switching from the default table surface to transparent objects).

Parameters:

set_name – Name of the calibration set to apply (e.g. "default", "transparent").

Returns:

A SwitchCalibrationSetBuilder (chainable via .set_name(), .on_anomaly(), .skip_timing()).

Example:

from raccoon.step.calibration import switch_calibration_set

# Switch to transparent calibration before scoring
switch_calibration_set("transparent")