canTransform
Verify if transformation is available
Syntax
Description
TransformationTree
Object
verifies if a transformation between the source frame and target frame is
available at the current time in isAvailable
= canTransform(tftree
,targetframe
,sourceframe
)tftree
. Create the
tftree
object using rostf
, which requires a
connection to a ROS network.
verifies
if a transformation is available for the source time. If isAvailable
= canTransform(tftree
,targetframe
,sourceframe
,sourcetime
)sourcetime
is
outside the buffer window, the function returns false
.
BagSelection
Object
verifies if a transformation is available in a rosbag in
isAvailable
= canTransform(bagSel
,targetframe
,sourceframe
)bagSel
. To get the bagSel
input,
load a rosbag using rosbag
.
verifies if a transformation is available in a rosbag for the source time. If
isAvailable
= canTransform(bagSel
,targetframe
,sourceframe
,sourcetime
)sourcetime
is outside the buffer window, the function
returns false
.
rosbagreader
Object
verifies if a transformation is available in a rosbag in
isAvailable
= canTransform(bagreader
,targetframe
,sourceframe
)bagreader
.
verifies if a transformation is available in a rosbag for the source time. If
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