ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Did you initialize the local node?
rospy.init_node("mynodename")
2 | No.2 Revision |
Did you initialize the local ros node?
rospy.init_node("mynodename")
3 | No.3 Revision |
Did you initialize the ros node?
rospy.init_node("mynodename")
The typical approach to get the current time is:
now = rospy.Time.now()
4 | No.4 Revision |
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