class documentation
class StandardLifecycleDriver(LifecycleDriver):
Constructor: StandardLifecycleDriver(binding, runtime)
The ROS2 standard: lifecycle_msgs, one change_state call per node.
The default flavour. Its path is the node itself.
| Method | __init__ |
Resolve the standard services, and the ChangeState request this flavour builds. |
| Async Method | send |
Call <node>/change_state once per node, and report every node that said no. |
| Class Variable | flavour |
Undocumented |
| Instance Variable | _change |
Undocumented |
| Instance Variable | _request |
Undocumented |
| Instance Variable | _transition |
Undocumented |
Inherited from LifecycleDriver:
| Method | __repr__ |
Return a representation naming the flavour and what it drives. |
| Async Method | appearances |
Yield how many publishers one node's transition_event has, now and on each change. |
| Async Method | apply |
Drive every node toward what one Skill trigger means, and return what went wrong. |
| Async Method | close |
Close every subscription this Driver opened. Idempotent. |
| Async Method | offered |
Ask one node which transitions it will accept right now. |
| Async Method | open |
Subscribe to every node's transition_event. |
| Async Method | read |
Ask one node what state it is in. One call, never a poll. |
| Async Method | transitions |
Yield every transition one node announces, until its subscription closes. |
| Class Variable | coordinates |
Whether path names a coordinator other than the node it drives, so that the nodes need to be listed. True for a nav2 manager, false for the standard flavour. |
| Property | binding |
Return the declaration this Driver was built from. |
| Property | paths |
Return the lifecycle nodes this Driver observes, in declaration order. |
| Async Method | _call |
Call one ROS2 service, answering None when the call does not happen. |
| Async Method | _gate |
Ask each node which transitions it offers, keeping silence apart from none. |
| Instance Variable | _binding |
Undocumented |
| Instance Variable | _event |
Undocumented |
| Instance Variable | _get |
Undocumented |
| Instance Variable | _get |
Undocumented |
| Instance Variable | _runtime |
Undocumented |
| Instance Variable | _subscriptions |
Undocumented |
async def send(self, transition:
LifecycleNodeTransition, paths: tuple[ str, ...]) -> Sequence[ str]:
¶
overrides
ros2.server.drivers.LifecycleDriver.sendCall <node>/change_state once per node, and report every node that said no.