Ask Your Question
3

tf tutorial warning message

asked 2012-03-29 08:04:40 -0500

maruchi gravatar image

updated 2012-03-29 08:07:16 -0500

Hi,

I am trying to follow this tutorial, but I got the following messages:

Traceback (most recent call last):
  File "/opt/ros/electric/stacks/geometry_tutorials/turtle_tf/nodes/turtle_tf_listener.py", line 57, in <module>
    (trans,rot) = listener.lookupTransform('/turtle2', '/turtle1', rospy.Time())
tf.ExtrapolationException: Lookup would require extrapolation at time 1333037934.805088997, but only time 1333037934.805421114 is in the buffer, when looking up transform from frame [/turtle1] to frame [/turtle2]
[turtle_pointer-6] process has died [pid 3789, exit code 1].
log files: /home/user/.ros/log/e0b84f1e-79ba-11e1-87ee-0023aea58509/turtle_pointer-6*.log

Could anyone resolve this problem?

My system info: Ubuntu 11.04, ROS electric

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2012-06-24 08:39:29 -0500

damjan gravatar image

I have edited turtle_tf_listener.py, and added tf.ExtrapolationException to the list of exceptions caught on line 58, so that my line 58 now reads:

except (tf.LookupException, tf.ConnectivityException, tf.ExtrapolationException):

This basically just catches the exception and moves on. Not sure if this is the recommended solution, but at least I can move on with the tutorial now :)

edit flag offensive delete link more
1

answered 2012-03-29 08:20:27 -0500

f_r gravatar image

try rospy.Time(0) instead of rospy.Time()

edit flag offensive delete link more

Comments

I am able to replicate this issue though I'm using C++ not python. In my case it occurs even when using ros::Time(0) though it is intermittent.

Dustin gravatar image Dustin  ( 2012-03-30 08:18:25 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2012-03-29 08:04:40 -0500

Seen: 1,488 times

Last updated: Jun 24 '12