Create a python script inside scripts folder and name it dynamic_frame.py
cd robotics/src/lab_1_tf/scriptscode dynamic_frame.pyCopy the content from the Lab1/dynamic_frame.txt into the dynamic_frame.py
Enable permission to run the script as an executable.
chmod +x dynamic_frame.pyOpen the listener.py and modify following line
(trans,rot) = listener.lookupTransform('/turtle2', '/turtle1', rospy.Time(0))as
(trans,rot) = listener.lookupTransform("/turtle2", "/carrot1", rospy.Time(0))