Ask Your Question

Revision history [back]

click to hide/show revision 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