class documentation
class ListRecentEvents(ROS2ListingMethod):
Constructor: ListRecentEvents(name, minimum_access_level, **kwargs)
The last N BindingEvents this Machine fired, oldest first.
An OPC UA event is a moment, so a client that was not subscribed at the time cannot learn it
happened. The last ~opensmi.ros2.server.events.RECENT_EVENTS are kept, which makes
conditions with no state variable (a QoS clash, a failed publish, a key collision, a cap
reached) answerable.
| Async Method | answer |
Return the last N kept events, oldest first, narrowed by code where one was given. |
| Async Method | _init |
Add the two arguments: how many to answer with, and a code to narrow them by. |
Inherited from ROS2ListingMethod:
| Method | __init__ |
Name the Method and give it the level its kind requires. |
| 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 | _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. |