IOStates

class pyniryo_nate.models.io.IOStates(digital_inputs: dict[IOLabel | str, DigitalIO], digital_outputs: dict[IOLabel | str, DigitalIO], analog_inputs: dict[IOLabel | str, AnalogIO], analog_outputs: dict[IOLabel | str, AnalogIO])[source]

Bases: object

Every input and output the robot serves, keyed by label.

A label the client does not know is a plain string key, so a robot serving inputs and outputs added after this client was installed is reported whole rather than refused.

Attributes

Methods

Parameters:
digital_inputs: dict[IOLabel | str, DigitalIO]
digital_outputs: dict[IOLabel | str, DigitalIO]
analog_inputs: dict[IOLabel | str, AnalogIO]
analog_outputs: dict[IOLabel | str, AnalogIO]
classmethod from_transport_model(model: IOStates) → IOStates[source]
Parameters:

model (IOStates)

Return type:

IOStates

to_transport_model() → IOStates[source]
Return type:

IOStates