Help with tf2 tutorial "Writing a tf2 listener"
A line of code in this tutorial confuses me: http://wiki.ros.org/tf2/Tutorials/Wri...
Line 25 in "The Code" looks like this:
trans = tfBuffer.lookup_transform(turtle_name, 'turtle1', rospy.Time())
Where the variable turtle_name is likely going to be turtle2. But When I look at the tf tree, turtle2 is not even mentioned.
As we want to compute a cmd_vel for turtle2 which will amount to it following turtle1 around, I would think that this lookup would be between "world" and "turtle1", in other words, to figure out where turtle1 is so that turtle2 can drive towards it.
Anyone can help me understand? Thanks!