Initializing global node /matlab_global_node_33798 with NodeURI http://192.168.17.1:56771/
tftree = rostf;
pause(2)
Verify the transformation you want to send over the network does not already exist. The canTransform function returns false if the transformation is not immediately available.
canTransform(tftree,'new_frame','base_link')
ans = logical
0
Create a TransformStamped message. Populate the message fields with the transformation information.
tftree — ROS transformation tree TransformationTree object handle
ROS transformation tree, specified as a TransformationTree object handle.
You can create a transformation tree by calling the rostf function.
tf — Transformations between coordinate frames TransformStamped object handle | array of object handles
Transformations between coordinate frames, returned as a TransformStamped object
handle or as an array of object handles. Transformations are structured
as a 3-D translation (3-element vector) and a 3-D rotation (quaternion).