class TFBinding(AwaitedBinding):
The TF tree, rendered as RSL Locations inside the SpatialObject of whatever owns them.
The second keyed Binding: one ROS2 path, many OPC UA objects, membership taken from the messages. It
is not a KeyedBinding because a frame is a SpatialLocationType Variable in a folder
OPC 10000-210 names, with a Base pointing at another Location, and a companion specification does
not belong in the generic mechanism. Named for its ROS2 side.
One declaration per object, and its content is one frame name. The declaring machinery item gains a SpatialObject whose PositionFrame is head, and every frame under that head belongs to it, down to the next declared head. A Machine declares one for itself and so does a Component; the Machine's mirror runs the whole partition.
Where TF is read from and how often are facts about the Machine, declared once in
ROS2Config.transforms. The keywords
path, static_path, depth, interval and quiet_after stay here only so that writing
one is refused with a message saying where it went.
| Method | __post |
Refuse a contradictory declaration. |
| Class Variable | kind |
Undocumented |
| Instance Variable | alternatives |
The composed poses this object publishes, each a (base, frame) pair. Each becomes a Location in AlternativeFrames holding where frame sits in base (OPC 10000-210, section 6.1.1). Declared, since nothing in a frame tree says which compositions are wanted. |
| Instance Variable | depth |
Machine-wide; refused here. |
| Instance Variable | exclude |
fnmatch globs over whole frame ids that are not rendered. A frame removed from the middle of a chain re-bases its children onto the nearest surviving ancestor. |
| Instance Variable | head |
The one frame this object is. It becomes the SpatialObject's mandatory PositionFrame; ownership of everything else follows from the tree. |
| Instance Variable | interval |
Machine-wide; refused here. |
| Instance Variable | name |
The Binding's name, used in BindingEvents and the mutation cap. It is not a prefix on any browse name: a frame's raw child_frame_id is the DisplayName and a sanitised form the BrowseName. |
| Instance Variable | path |
Machine-wide; refused here. |
| Instance Variable | publishes |
The frames this object puts on the frame network instead of reading, each a PublishedFrame. None may also be read inward (FrameDirectionError). A declaration that publishes nothing never advertises /tf... |
| Instance Variable | quiet |
Machine-wide; refused here. |
| Instance Variable | required |
Whether the StartupSkill waits for a publisher on a transform topic before Running. Presence only, never a particular frame. |
| Instance Variable | startup |
Seconds that wait lasts, or None for ~opensmi.ros2.server.config.ROS2Config.startup_timeout. |
| Instance Variable | static |
Machine-wide; refused here. |
| Property | broadcasts |
Return whether this declaration puts anything on the frame network. |
| Property | needs |
Return False: both topics carry tf2_msgs/msg/TFMessage and the frames are content. |
| Property | published |
Return the frames this declaration publishes. |
| Method | _require |
Refuse an alternative that is not two different, non-empty frame names. |
| Method | _require |
Refuse a published frame that is not a transform. |
| Method | _require |
Refuse a value that belongs to the whole Machine. |
| Method | _require |
Refuse outward frames that contradict each other or the declaration. |
Refuse a contradictory declaration.
| Raises | |
DeclarationError | When it names no head frame, excludes its own head, declares an alternative that is not a pair of two different frames, or publishes a frame that names no pair, is its own parent, is declared twice or is one of its own exclusions. |
FrameDirectionError | When it publishes its own head frame, which is read inward. |
DeclarationError | When it declares where TF is read from or how often it is polled. |
RequiredDeclarationError | When startup_timeout is declared without required, or is not positive. |
The composed poses this object publishes, each a (base, frame) pair. Each becomes a Location in AlternativeFrames holding where frame sits in base (OPC 10000-210, section 6.1.1). Declared, since nothing in a frame tree says which compositions are wanted.
fnmatch globs over whole frame ids that are not rendered. A frame removed from the middle of a chain re-bases its children onto the nearest surviving ancestor.
The one frame this object is. It becomes the SpatialObject's mandatory PositionFrame; ownership of everything else follows from the tree.
The Binding's name, used in BindingEvents and the mutation cap. It is not a prefix on any browse name: a frame's raw child_frame_id is the DisplayName and a sanitised form the BrowseName.
The frames this object puts on the frame network instead of reading, each a
PublishedFrame. None may also be read inward (FrameDirectionError). A declaration
that publishes nothing never advertises /tf.
Whether the StartupSkill waits for a publisher on a transform topic before Running. Presence only, never a particular frame.
Seconds that wait lasts, or None for
~opensmi.ros2.server.config.ROS2Config.startup_timeout.
Return whether this declaration puts anything on the frame network.
A Machine that publishes no frame must not appear on /tf as a publisher, since every TF Binding reads that presence as a transform source being up.
Refuse an alternative that is not two different, non-empty frame names.
| Raises | |
DeclarationError | When the pair is invalid. |
Refuse a published frame that is not a transform.
| Raises | |
DeclarationError | When either name is empty, or the two are one frame. |
Refuse a value that belongs to the whole Machine.
| Raises | |
DeclarationError | When any of the five Machine-wide keywords carries a value. |