class documentation

A read-only Method answering with a list of lines, at the listing level and without the Lock.

FinalResultData holds a Count and an Entries array of strings, and the subclass declares its arguments as Parameters in _init. The answers are strings because they are prose for a person reading an HMI panel. A subclass implements answer.

Method __init__ Name the Method and give it the level its kind requires.
Async Method answer Do whatever this Method does, and return the lines it answers with.
Async Method execute_method Answer the call, writing the count beside the lines.
Class Variable bypasses_the_lock Undocumented
Property component Return the introspection Component.
Property runtime Return the Machine's Runtime.
Async Method _add_argument Create one writable argument. A listing's is writable without the Lock, a mutator's is not.
Async Method _answered Await one ROS2 call, turning transport failures into UA status codes.
Async Method _condition_startup_completed Answer yes: nothing here commands the robot, and one asks most when startup failed.
Async Method _init Let opensmi build the Method, then add the two result variables every one has.
Async Method _one_type_on Return the one ROS2 type a graph name carries, or refuse to guess between several.
Async Method _refreshed_graph Read the ROS2 graph once. No poll keeps running.
Async Method _refuse Log the reason on the Notification, then refuse with a status code.
Async Method _require_an_argument Refuse a call whose text argument was left empty.
Async Method _text_parameter Return one string Parameter, stripped.
Async Method _write_lines Write one answer into the two result variables.
def __init__(self, *, name: str, minimum_access_level: int = LISTING_ACCESS_LEVEL, **kwargs: Any):

Name the Method and give it the level its kind requires.

@override
async def execute_method(self):

Answer the call, writing the count beside the lines.

bypasses_the_lock: ClassVar[bool] =

Undocumented

@property
component: Any =

Return the introspection Component.

@property
runtime: RuntimeInterface =

Return the Machine's Runtime.

async def _add_argument(self, name: str, initial: object, variant_type: ua.VariantType):

Create one writable argument. A listing's is writable without the Lock, a mutator's is not.

async def _answered(self, call: Awaitable[Any]) -> Any:

Await one ROS2 call, turning transport failures into UA status codes.

Raises
UaStatusCodeErrorThe code ~opensmi.ros2.server.method.TRANSPORT_STATUS gives, when the call did not happen. Declared service Methods use the same table.
@override
async def _condition_startup_completed(self, user: UserAuthorization) -> bool:

Answer yes: nothing here commands the robot, and one asks most when startup failed.

async def _one_type_on(self, path: str, names: Mapping[str, tuple[str, ...]], argument: str) -> str:

Return the one ROS2 type a graph name carries, or refuse to guess between several.

Raises
UaStatusCodeErrorBadInvalidArgument when the name is not on the graph or carries more than one type.
async def _refreshed_graph(self) -> GraphSnapshot:

Read the ROS2 graph once. No poll keeps running.

async def _refuse(self, code: int, text: str) -> NoReturn:

Log the reason on the Notification, then refuse with a status code.

Call can only answer a status code, so the reason travels as a Notification message.

Raises
UaStatusCodeErrorAlways.
async def _require_an_argument(self, value: str, name: str, what: str):

Refuse a call whose text argument was left empty.

Raises
UaStatusCodeErrorBadInvalidArgument.
async def _text_parameter(self, name: str) -> str:

Return one string Parameter, stripped.

async def _write_lines(self, lines: Sequence[str]):

Write one answer into the two result variables.