Package Details: ros-kinetic-rostime 0.6.9-1

Git Clone URL: https://aur.archlinux.org/ros-kinetic-rostime.git (read-only)
Package Base: ros-kinetic-rostime
Description: ROS - Time and Duration implementations for C++ libraries, including roscpp.
Upstream URL: http://ros.org/wiki/rostime
Licenses: BSD
Submitter: zootboy
Maintainer: None
Last Packager: zootboy
Votes: 3
Popularity: 0.022343
First Submitted: 2016-12-21 06:28
Last Updated: 2018-03-29 21:35

Latest Comments

jerry73204 commented on 2018-07-08 16:57

Could you include this patch to fix this boost issue?

diff -Naur roscpp_core-release-release-kinetic-rostime-0.6.9-0/include/ros/impl/duration.h new/include/ros/impl/duration.h
--- roscpp_core-release-release-kinetic-rostime-0.6.9-0/include/ros/impl/duration.h 2018-02-09 06:35:45.000000000 +0800
+++ new/include/ros/impl/duration.h 2018-07-09 00:54:56.584219587 +0800
@@ -179,7 +179,7 @@
 #if defined(BOOST_DATE_TIME_HAS_NANOSECONDS)
     return bt::seconds(sec) + bt::nanoseconds(nsec);
 #else
-    return bt::seconds(sec) + bt::microseconds(nsec/1000.0);
+    return bt::seconds(sec) + bt::microseconds(int32_t(nsec/1000.0));
 #endif
   }
 }
diff -Naur roscpp_core-release-release-kinetic-rostime-0.6.9-0/include/ros/impl/time.h new/include/ros/impl/time.h
--- roscpp_core-release-release-kinetic-rostime-0.6.9-0/include/ros/impl/time.h 2018-02-09 06:35:45.000000000 +0800
+++ new/include/ros/impl/time.h 2018-07-09 00:54:56.587552906 +0800
@@ -167,7 +167,7 @@
 #if defined(BOOST_DATE_TIME_HAS_NANOSECONDS)
     return pt::from_time_t(sec) + pt::nanoseconds(nsec);
 #else
-    return pt::from_time_t(sec) + pt::microseconds(nsec/1000.0);
+    return pt::from_time_t(sec) + pt::microseconds(int32_t(nsec/1000.0));
 #endif
   }

jerry73204 commented on 2018-07-08 02:09

I have the same issue.

jrangol commented on 2018-06-27 19:38

Just a heads up. For this to compile with newer boost (tested with 1.67.0-4) without the bt::microseconds error, it's necessary to manually cast the argument to uint32.

i.e. bt::microseconds(arg) -> bt::microseconds(uint32_t(arg))