In ROS TF , Unit 3, Subscribe and Publish to TF, program model1_to_model2_listener.py, the goal is to listen to TF data and get one turtle to follow another turtle.
In the code, while naming the frames, we add “/” before the frame name as shown below:
follower_model_frame = "/"+follower_model_name
model_to_be_followed_frame = "/"+model_to_be_followed_name
I got the same result when I ran the code without the “/”, as shown below:
# follower_model_frame = "/"+follower_model_name
# model_to_be_followed_frame = "/"+model_to_be_followed_name
follower_model_frame = follower_model_name
model_to_be_followed_frame = model_to_be_followed_name
If the code works without the “/”, then why add it in the first place?