Retrieve transformation between two coordinate frames
returns the latest known transformation between two coordinate frames in
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).
returns the transformation from the tf
= getTransform(tftree
,targetframe
,sourceframe
,sourcetime
)tftree
at the given
source time. If the transformation is not available at that time, an error is
displayed.
returns the latest transformation between two frames in the rosbag in
tf
= getTransform(bagSel
,targetframe
,sourceframe
)bagSel
. To get the bagSel
input,
load a rosbag using rosbag
.
returns the transformation at the specified tf
= getTransform(bagSel
,targetframe
,sourceframe
,sourcetime
)sourcetime
in
the rosbag in bagSel
.
canTransform
| rosbag
| rostf
| transform
| waitForTransform