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

Revision history [back]

Did you initialize the local node?

rospy.init_node("mynodename")

Did you initialize the local ros node?

rospy.init_node("mynodename")

Did you initialize the ros node?

rospy.init_node("mynodename")

The typical approach to get the current time is:

now = rospy.Time.now()

Did you initialize the ros node?

rospy.init_node("mynodename")

The typical approach to get the current time is:

now = rospy.Time.now()

If you are using some kind of simulation you also have to take into account how the use_sim_time parameter influence to the behavior of the rospy.Time. Have a look to: http://wiki.ros.org/Clock