laborchestrator.sila_server.feature_implementations.simulationcontroller_impl module

class laborchestrator.sila_server.feature_implementations.simulationcontroller_impl.SimulationControllerImpl(parent_server: Server)[source]

Bases: SimulationControllerBase

StartRealMode(*, metadata: MetadataDict) StartRealMode_Responses[source]

Sets the SiLA Server to run in real mode, i.e. all following commands are executed with real-world

interactions, like serial port/CAN communication, motor actions etc.

If the server is in Simulation Mode it can be interrupted at any time. A re-initialization of the hardware might be required. The Real Mode can be stopped by issuing the ‘Start Simulation Mode’ command.

param metadata:

The SiLA Client Metadata attached to the call

StartSimulationMode(*, metadata: MetadataDict) StartSimulationMode_Responses[source]

Sets the SiLA Server to run in Simulation Mode, i.e. all following commands are executed in simulation mode.

The Simulation Mode can only be entered, if all hardware operations have been safely terminated or are in a controlled, safe state.

The simulation mode can be stopped by issuing the ‘Start Real Mode’ command.

param metadata:

The SiLA Client Metadata attached to the call

_abc_impl = <_abc._abc_data object>
get_SimulationMode(*, metadata: MetadataDict) bool[source]

Indication whether SiLA Server is in Simulation Mode or not.

Parameters:

metadata – The SiLA Client Metadata attached to the call

Returns:

Indication whether SiLA Server is in Simulation Mode or not.