why the turtle2 follow turtle1 in tf2 tutorials?
I am following the Python tutorials of tf2 - http://wiki.ros.org/tf2/Tutorials. I have completed it till writing a tf2.listener step. I am confused as to why after this step turtle2 follow the turtle1. All I understood is that the previous broadcaster broadcasts the pose of turtle1 w.r.t to the world frame. And the listener listens to that pose or transform and does frame transformation from turtle2 to turtle1. Why frame transform between frame1 and frame2 makes one turtle follow the other one?
Isn't it true that transform is just a relationship between coordinate frames of both the turtles. We then generally use this information to transform a point in frame1 to frame 2. But I am a little confused about what's happening in that tutorial. Any help is appreciated.
I am using ROS Noetic in Ubuntu 20.04. I wanted to use tf2 to transform vector and point of an object from camera frame to the robot frame in my project.
Does this code ''trans = tfBuffer.lookup_transform(turtle_name, 'turtle1', rospy.Time())'' gives pose of turtle1 w.r.t turtle_name i.e.turtle2?