5 return tf_buffer.can_transform_core(target_frame, source_frame, time_)[0]
9 request_time = rospy.Time.now()
11 while rospy.Time.now() < request_time + timeout:
13 if can_transform(tf_buffer, target_frame, source_frame, rospy.Time(0)):
14 transform = tf_buffer.lookup_transform_core(
15 target_frame, source_frame, rospy.Time(0))
17 if transform.header.stamp > request_time:
21 raise RuntimeError(
'Transform timeout.')
def can_transform(tf_buffer, target_frame, source_frame, time_)
def wait_for_transform(tf_buffer, target_frame, source_frame, timeout)