genericroboticarm.sila_server.server module

class genericroboticarm.sila_server.server.Server(robo_interface: RoboInterface, server_uuid: UUID | None = None)[source]

Bases: SilaServer

children_by_fully_qualified_identifier: Dict[FullyQualifiedIdentifier, Feature | Command | Property | Parameter | Response | IntermediateResponse | DefinedExecutionErrorNode | DataTypeDefinition | Metadata]

All child elements, accessible by their fully qualified identifier

feature_servicers: Dict[str, FeatureImplementationServicer]
features: Dict[str, Feature]
generated_ca: bytes | None

PEM-encoded certificate authority of self-signed certificate, if generated on server startup

metadata_interceptors: List[MetadataInterceptor]

Registered metadata interceptors

robot: RoboInterface
stop(grace_period: float | None = None) None[source]

Stop the server and block until completion

Parameters:

grace_period (Time in seconds to wait before aborting all ongoing interactions)