ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I'm confused about the different between rospy.Time(0) and rospy.Time.now()

rospy.Time.now() just returns the current 'wall clock time'.

rospy.Time(0) constructs a Time instance that has special significance in TF contexts: it will cause lookupTransform(..) and friends to return the latest available data for a specific transform, instead of the data at a specific point in time.

I'm confused about the different between rospy.Time(0) and rospy.Time.now()

rospy.Time.now() just returns the current 'wall clock time'.time' (or the simulated clock, depending on if you have a Clock server running).

rospy.Time(0) constructs a Time instance that has special significance in TF contexts: it will cause lookupTransform(..) and friends to return the latest available data for a specific transform, instead of the data at a specific point in time.

I'm confused about the different between rospy.Time(0) and rospy.Time.now()

rospy.Time.now() just returns the current 'wall clock time' (or the simulated clock, depending on if whether you have a Clock server running).

rospy.Time(0) constructs a Time instance that has special significance in TF contexts: it will cause lookupTransform(..) and friends to return the latest available data for a specific transform, instead of the data at a specific point in time.