Receive, send, and apply ROS transformations
Calling the rostf
function creates a ROS
TransformationTree
object, which allows you to access the tf
coordinate transformations that are shared on the ROS network. You can receive
transformations and apply them to different entities. You can also send transformations
and share them with the rest of the ROS network.
ROS uses the tf transform library to keep track of the relationship between multiple coordinate frames. The relative transformations between these coordinate frames are maintained in a tree structure. Querying this tree lets you transform entities like poses and points between any two coordinate frames. To access available frames, use the syntax:
tfTree.AvailableFrames
Use the ros.TransformationTree
syntax when connecting to a specific
ROS node, otherwise use rostf
to create the transformation
tree.
waitForTransform | Wait until a transformation is available |
getTransform | Retrieve transformation between two coordinate frames |
transform | Transform message entities into target coordinate frame |
sendTransform | Send transformation to ROS network |