rpl_wei.validators

Validators for actions and modules

Classes

ModuleValidator([run_logger])

Validate the modules of a workcell

StepValidator([run_logger])

Validate the steps of a workcell

class rpl_wei.validators.ModuleValidator(run_logger: Logger | None = None)

Validate the modules of a workcell

check_module(module: SimpleModule) Tuple[bool, str]

This object queries the modules to see if they are online/functional

Parameters:

module (Module) – The module dataclass with information about the module

Returns:

Tuple[bool, str] – Tuple with okay status (bool) and the status response from the robot

class rpl_wei.validators.StepValidator(run_logger: Logger | None = None)

Validate the steps of a workcell

check_step(step: Step) Tuple[bool, str]

The method queries the module specified by the step and validates the action can be run on this machien

Parameters:

step (Step) – A single step from an instance of a workflow

Returns:

bool – Whether or not the step can be run on the module