Re: [ros-users] TimeNotInitializedException while creating t…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Ken Conley
Date:  
To: ros-users
Subject: Re: [ros-users] TimeNotInitializedException while creating tf.TransformListener in python
The problem will be fixed in the most recent release of geometry, *but* you
need to switch from latest to cturtle. We are switching over our development
to cturtle, which we have just branched from latest in order to stabilize
development. The official announcement for testing our alpha release of
cturtle will likely come tomorrow, but you can access it (including debs) by
substituting 'cturtle' for 'boxturtle' in any of the installation
instructions. This alpha version of cturtle comes with the same warnings and
caveats we apply to latest: use at your own risk, as problems like the one
you reported are likely to exist.

- Ken

On Tue, Jun 8, 2010 at 10:45 PM, Antons Rebguns <> wrote:

>
> 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
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>