class documentation

class PublishedFrame:

View In Hierarchy

One frame this object puts on the ROS2 frame network, and the pose it starts at.

The outward half of a TF Binding. Inward, which frames exist is discovered. Outward each transform an operator wants to assert is named here, which creates a client-writable Location and a link on /tf. It reads like an alternative: where frame sits in base, answered by a client for the robot.

Instance Variable base The frame this one's pose is relative to, becoming header.frame_id. It is the frame's TF parent and what the Location's Base resolves through. Declared, since nobody else publishes this frame.
Instance Variable frame The frame this declaration owns, becoming child_frame_id. It may not be declared twice, be its own parent, or be any object's head frame.
Instance Variable orientation The A, B and C angles RSL holds, in degrees: roll about X, pitch about Y, yaw about Z. The conversion to the quaternion ROS2 wants is ours.
Instance Variable position Where the frame sits in its base until a client says otherwise, in metres. Declared so that "nobody wrote it yet" is distinguishable from "at the origin"; leaving it out means identity.
Instance Variable static Whether it goes on /tf_static instead of /tf. A static frame is published when its value changes, not every tick. Our own publisher is used because tf2_ros.StaticTransformBroadcaster silently drops an update to a frame it already sent.
base: str =

The frame this one's pose is relative to, becoming header.frame_id. It is the frame's TF parent and what the Location's Base resolves through. Declared, since nobody else publishes this frame.

frame: str =

The frame this declaration owns, becoming child_frame_id. It may not be declared twice, be its own parent, or be any object's head frame.

orientation: tuple[float, float, float] =

The A, B and C angles RSL holds, in degrees: roll about X, pitch about Y, yaw about Z. The conversion to the quaternion ROS2 wants is ours.

position: tuple[float, float, float] =

Where the frame sits in its base until a client says otherwise, in metres. Declared so that "nobody wrote it yet" is distinguishable from "at the origin"; leaving it out means identity.

static: bool =

Whether it goes on /tf_static instead of /tf. A static frame is published when its value changes, not every tick. Our own publisher is used because tf2_ros.StaticTransformBroadcaster silently drops an update to a frame it already sent.