class ROS2ListingMethod(ParameterSetMixin[
Known subclasses: ros2.server.introspection.DescribeROS2Parameter, ros2.server.introspection.ListBindings, ros2.server.introspection.ListRecentEvents, ros2.server.introspection.ListROS2Parameters, ros2.server.introspection.ROS2GraphListing, ros2.server.introspection.ROS2MutatorMethod
Constructor: ROS2ListingMethod(name, minimum_access_level, **kwargs)
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 |
Answer the call, writing the count beside the lines. |
| Class Variable | bypasses |
Undocumented |
| Property | component |
Return the introspection Component. |
| Property | runtime |
Return the Machine's Runtime. |
| Async Method | _add |
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 |
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 |
Return the one ROS2 type a graph name carries, or refuse to guess between several. |
| Async Method | _refreshed |
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 |
Refuse a call whose text argument was left empty. |
| Async Method | _text |
Return one string Parameter, stripped. |
| Async Method | _write |
Write one answer into the two result variables. |
str, minimum_access_level: int = LISTING_ACCESS_LEVEL, **kwargs: Any):
¶
ros2.server.introspection.ROS2MutatorMethodName the Method and give it the level its kind requires.
ros2.server.introspection.BindTopic, ros2.server.introspection.CallService, ros2.server.introspection.DescribeROS2Parameter, ros2.server.introspection.ListBindings, ros2.server.introspection.ListRecentEvents, ros2.server.introspection.ListROS2Parameters, ros2.server.introspection.ROS2GraphListingDo whatever this Method does, and return the lines it answers with.
Implemented by each subclass.
Await one ROS2 call, turning transport failures into UA status codes.
| Raises | |
UaStatusCodeError | The code ~opensmi.ros2.server.method.TRANSPORT_STATUS
gives, when the call did not happen. Declared service Methods use the same table. |
ros2.server.introspection.BindTopic, ros2.server.introspection.CallService, ros2.server.introspection.DescribeROS2Parameter, ros2.server.introspection.ListBindings, ros2.server.introspection.ListRecentEvents, ros2.server.introspection.ListROS2Parameters, ros2.server.introspection.ROS2GraphListingLet opensmi build the Method, then add the two result variables every one has.
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 | |
UaStatusCodeError | BadInvalidArgument when the name is not on the graph or carries more than one type. |
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 | |
UaStatusCodeError | Always. |