tf::transformPoint cannot find frame
Hi All,
I am trying to convert PointStamped values from the narrow_stereo_link frame to the base_link frame using tf::TransformListener::transformPoint. However, I keep getting:
terminate called after throwing an instance of 'tf::LookupException'
what(): Frame id / does not exist!
In my code I have the following function call,
mTransformListener.waitForTransform("/narrow_stereo_link", "/base_link", ros::Time::now(), ros::Duration(5.0)); mTransformListener.transformPoint("/base_link", min_in, min_res);
On executing
rosrun tf tf_echo narrow_stereo_link base_link
on the terminal, I get the following output :
At time 1340824941.479
- Translation: [0.152, -0.117, -1.386]
Rotation: in Quaternion [-0.110, 0.061, 0.869, -0.479]
in RPY [0.214, 0.133, -2.119]
which means that the two are connected in the tf_tree, which is also seen in the frames.pdf generated by
rosrun tf view_frames
Can anyone help me with this?