class documentation
class BindTopic(ROS2MutatorMethod):
Constructor: BindTopic(name, minimum_access_level, **kwargs)
Bind a ROS2 topic to this Component's Monitoring, ephemerally, to look at it.
It creates an ordinary Monitoring Binding through the mutation chokepoint, so what an operator sees is what the written declaration would show. Nothing reaches disk and nothing is unbound: the Binding lives until the server restarts.
| Async Method | answer |
Bind the topic and say what was made, or say why nothing was. |
| Async Method | _init |
Add the three arguments: what to call it, which topic, and which type. |
Inherited from ROS2MutatorMethod:
| Method | __init__ |
Register the Method at the deployment's mutator level, which has no default. |
| Class Variable | bypasses |
Undocumented |
Inherited from ROS2ListingMethod (via ROS2MutatorMethod):
| Async Method | execute |
Answer the call, writing the count beside the lines. |
| 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. |
Bind the topic and say what was made, or say why nothing was.
| Raises | |
UaStatusCodeError | BadInvalidArgument when a name or a topic is missing, when the type was neither given nor decidable from the graph, or when the name is taken; BadOutOfRange when a mutation cap refused the nodes. |