ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The secs
and nsecs
fields of a timestamp are integer values, so secs: 0.7
is getting truncated to zero.
To represent 0.7s, you can either do time_from_start = rospy.Duration.from_sec(0.7)
, or explicitly set the fields to secs = 0
and nsecs = 700000000
More here http://wiki.ros.org/rospy/Overview/Time