step.calibration.sensors.switch_set_step

Classes

SwitchCalibrationSet

Switch IR sensors to a named calibration set.

Module Contents

class step.calibration.sensors.switch_set_step.SwitchCalibrationSet(set_name: str = 'default')

Bases: raccoon.ui.step.UIStep

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").

Example:

from raccoon.step.calibration import switch_calibration_set

# Switch to transparent calibration before scoring
switch_calibration_set("transparent")
set_name = 'default'