dur = ros2duration(secs,nsecs)
initializes the duration values for seconds and nanoseconds individually. The function
automatically wraps large values of nsecs, and adds the remainder to
the seconds value of the message, secs.
Total time, specified as a floating-point scalar. The integer portion sets the
sec field, and the remainder sets the nanosec
field of the duration message dur.
Whole seconds, specified as an integer. This value directly sets to the
sec field of the duration message dur.
Note
The maximum and minimum values for secs are
2147483648 and 2147483647,
respectively.
Nanoseconds, specified as a positive integer. This value directly sets the
nanoSec field of the duration message dur,
unless it is greater than or equal to 109. If so, the
function wraps the value and adds the remainder to the value of
secs.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.