FirmwareState

class pyniryo_nate.models.firmware.FirmwareState(status: FirmwareStatus, container_status: str, safety: SafetyState | None)[source]

Bases: object

State of the robot firmware.

Parameters:
  • status (FirmwareStatus) – Lifecycle of the base node.

  • container_status (str) – The status of the ros-robot container (running, stopped, not_found, unknown). Anything other than “running” forces status to INACTIVE and omits safety.

  • safety (SafetyState | None) – State reported by the safety module, if any.

Attributes

Methods

status: FirmwareStatus
container_status: str
safety: SafetyState | None
classmethod from_transport_model(model: FirmwareState) → FirmwareState[source]
Parameters:

model (FirmwareState)

Return type:

FirmwareState

classmethod from_a_transport_model(model: FirmwareState) → FirmwareState[source]
Parameters:

model (FirmwareState)

Return type:

FirmwareState