[ros-users] tf and time tutorial

Michael Koval koval.michael at gmail.com
Tue Jun 7 19:16:49 UTC 2011


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
> ros-users at code.ros.org (mailto:ros-users at code.ros.org)
> https://code.ros.org/mailman/listinfo/ros-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110607/7f011ac5/attachment-0003.html>


More information about the ros-users mailing list