From ab51ff81ea34dbba5ad13bcb1b2b45c0a4197180 Mon Sep 17 00:00:00 2001 From: Tiziano Guadagnino <37455909+tizianoGuadagnino@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:47:45 +0200 Subject: [PATCH] Update ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp Co-authored-by: Benedikt Mersch --- ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp b/ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp index 7897fdd..9ee60e4 100644 --- a/ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp +++ b/ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp @@ -64,7 +64,7 @@ auto TimeToROSStamp(const double &time) { }; double ROSStampToTime(const builtin_interfaces::msg::Time stamp) { double time = static_cast(stamp.sec); - time += static_cast(stamp.nanosec) * 1e9; + time += static_cast(stamp.nanosec) * 1e-9; return time; }; } // namespace