ROS Serial library for Mbed platforms for ROS Melodic Morenia. Check http://wiki.ros.org/rosserial_mbed/ for more information.

Dependencies:   BufferedSerial

Revision:
1:da82487f547e
Parent:
0:04ac6be8229a
--- a/ros/time.h	Fri Nov 08 14:38:09 2019 -0300
+++ b/ros/time.h	Fri Nov 08 14:55:04 2019 -0300
@@ -54,6 +54,10 @@
     normalizeSecNSec(sec, nsec);
   }
 
+  double round(double number)
+  {
+    return number < 0.0 ? ceil(number - 0.5): floor(number + 0.5);
+  };
   double toSec() const
   {
     return (double)sec + 1e-9 * (double)nsec;