class Nav2ManagerDriver(LifecycleDriver):
Constructor: Nav2ManagerDriver(binding, runtime)
A nav2-style manager: one manage_nodes call covering the whole set it drives.
The declaration's path is the manager and nodes are the lifecycle nodes it drives, which are observed and gated like the standard flavour's. The manager commands its whole set and this Driver cannot narrow that: if some nodes are active and some inactive, the manager answers success=False for the half that could not take the transition, and that is reported. A halt also reaches nodes the Skill did not start. The gate still prevents a call when no node in the set can take the transition.
| Method | __init__ |
Resolve the standard observation services, and nav2's own management service. |
| Async Method | send |
Call <manager>/manage_nodes once, with the command that sends this transition. |
| Class Variable | coordinates |
Undocumented |
| Class Variable | flavour |
Undocumented |
| Instance Variable | _manage |
Undocumented |
| Instance Variable | _request |
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. |
| 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 |
LifecycleNodeTransition, paths: tuple[ str, ...]) -> Sequence[ str]:
¶
ros2.server.drivers.LifecycleDriver.sendCall <manager>/manage_nodes once, with the command that sends this transition.