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