ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The tf
system is a distributed system. It takes time to initialize the communications and communicate information across the network.
If you look at all the tutorials, they always are written in a way to be robust to a missing transform and just retry on the next cycle: tf2 Listener Tutorial
As @osilva mentioned if you're doing a onetime operation you can consider using waitForTransform
tf and time tutorial to wait for data to arrive.