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