We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adba623 commit fb9f9c3Copy full SHA for fb9f9c3
rclrs/src/time.rs
@@ -26,17 +26,6 @@ impl Time {
26
.ptr_eq(&rhs.clock)
27
.then(|| f(self.nsec, rhs.nsec))
28
}
29
-
30
- /// Convenience function for converting time to ROS message
31
- pub fn to_ros_msg(&self) -> Result<builtin_interfaces::msg::Time, TryFromIntError> {
32
- let nanosec = self.nsec % 1_000_000_000;
33
- let sec = self.nsec / 1_000_000_000;
34
35
- Ok(builtin_interfaces::msg::Time {
36
- nanosec: nanosec.try_into()?,
37
- sec: sec.try_into()?,
38
- })
39
- }
40
41
42
impl Add<Duration> for Time {
0 commit comments