Skip to content

Commit fb9f9c3

Browse files
author
GueLaKais
committed
doesn't work
1 parent adba623 commit fb9f9c3

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

rclrs/src/time.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ impl Time {
2626
.ptr_eq(&rhs.clock)
2727
.then(|| f(self.nsec, rhs.nsec))
2828
}
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-
}
4029
}
4130

4231
impl Add<Duration> for Time {

0 commit comments

Comments
 (0)