[ros-users] TimeNotInitializedException while creating tf.TransformListener in python
Antons Rebguns
arebgun at gmail.com
Wed Jun 9 05:45:46 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi folks,
I am running latest ROS and have a strange problem that shows up when running this little snippet of code:
#! /usr/bin/env python
import roslib; roslib.load_manifest('wubble_actions')
import rospy
import tf
if __name__ == '__main__':
rospy.init_node('tf_test', anonymous=True)
tf = tf.TransformListener()
rospy.spin()
After running this node I get the following error:
terminate called after throwing an instance of 'ros::TimeNotInitializedException'
what(): Cannot use ros::Time before calling ros::init
[test_tf-11] process has died [pid 15907, exit code -6].
log files: /home/anton/.ros/log/6e6c07b8-7389-11df-9736-0026b0e3798c/test_tf-11*.log
Does anybody have an idea what might be wrong here?
Thanks,
Anton
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwPKooACgkQ1B2I24nMQmqYIACgsWTia6yHJxnd3SmkxiBvzhAi
viQAnimrN2qOumTsTUspxmLf3WiZzya9
=iMDR
-----END PGP SIGNATURE-----
More information about the ros-users
mailing list