canTransform
Verify if transformation is available
Syntax
Description
TransformationTree Object
isAvailable = canTransform(tftree,targetframe,sourceframe)tftree. Create the
                        tftree object using rostf, which requires a
                    connection to a ROS network.
isAvailable = canTransform(tftree,targetframe,sourceframe,sourcetime)sourcetime is
outside the buffer window, the function returns false.
BagSelection Object
            isAvailable = canTransform(bagSel,targetframe,sourceframe)bagSel. To get the bagSel input,
                    load a rosbag using rosbag.
isAvailable = canTransform(bagSel,targetframe,sourceframe,sourcetime)sourcetime is outside the buffer window, the function
                    returns false.
rosbagreader Object
            isAvailable = canTransform(bagreader,targetframe,sourceframe)bagreader.
isAvailable = canTransform(bagreader,targetframe,sourceframe,sourcetime)sourcetime is outside the buffer window, the function
                    returns false.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2019b
See Also
getTransform | transform | rosbag | rostf | waitForTransform | rosbagreader