Re: [ros-users] tf and time tutorial

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: Re: [ros-users] tf and time tutorial
It sounds like you may be calling rospy.Time.now() before rospy.init_node(). Most of ROS's API calls will not function unless you have initialized your node first.

-Michael

On Tuesday, June 7, 2011 at 3:04 PM, Ringo (Lester) Davis wrote:

> in the tf and time tutorial there is a line
> now = rospy.Time.now()
> but it crashes every time I run it.
> the error is
> [listener-5] process has died [pid 6449, exit code 1].
> log files: /home/ringo/.ros/log/df877bf2-910c-11e0-bc06-080027911c3f/listener-5*.log
>
> now = rospy.get_rostime()
> crashes as well
>
> now = rospy.Time(0)
> works ok.
> am I missing something?
> Ringo
> _______________________________________________
> ros-users mailing list
> (mailto:ros-users@code.ros.org)
> https://code.ros.org/mailman/listinfo/ros-users