getTransform
Retrieve transformation between two coordinate frames
Syntax
Description
TransformationTree Object
tf = getTransform(tftree,targetframe,sourceframe)tftree. Create the tftree object
                    using rostf, which requires a
                    connection to a ROS network.
Transformations are structured as a 3-D translation (three-element vector) and a 3-D rotation (quaternion).
tf = getTransform(tftree,targetframe,sourceframe,sourcetime)tftree at the given source
                    time. If the transformation is not available at that time, the function returns
                    an error.
tf = getTransform(___,"Timeout",timeout)
BagSelection Object
            tf = getTransform(bagSel,targetframe,sourceframe)bagSel. To get the bagSel input,
                    load a rosbag using rosbag.
tf = getTransform(bagSel,targetframe,sourceframe,sourcetime)sourcetime in
                    the rosbag in bagSel.
tf = getTransform(___,"DataFormat","struct")geometry_msgs/TransformStamped message in the
                    specified format.
rosbagreader Object
            tf = getTransform(bagreader,targetframe,sourceframe)bagreader.
tf = getTransform(bagreader,targetframe,sourceframe,sourcetime)sourcetime in
                    the rosbag in bagreader.
tf = getTransform(___,"DataFormat","struct")geometry_msgs/TransformStamped message in the
                    specified format.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2019bSee Also
transform | waitForTransform | rostf | canTransform | rosbag | rosbagreader