From 0adb69b77dd9f8d88e7df690e143776745df06e3 Mon Sep 17 00:00:00 2001 From: Benedikt Mersch Date: Thu, 7 Nov 2024 14:46:49 +0100 Subject: [PATCH] Update comment --- ros/src/kinematic_icp_ros/utils/RosUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ros/src/kinematic_icp_ros/utils/RosUtils.cpp b/ros/src/kinematic_icp_ros/utils/RosUtils.cpp index 0aa90ab..84a08da 100644 --- a/ros/src/kinematic_icp_ros/utils/RosUtils.cpp +++ b/ros/src/kinematic_icp_ros/utils/RosUtils.cpp @@ -63,8 +63,8 @@ auto ExtractTimestampsFromMsg(const PointCloud2::ConstSharedPtr msg, timestamps.reserve(n_points); for (size_t i = 0; i < n_points; ++i, ++it) { double stamp = static_cast(*it); - // If the stamp is larger than int32, - // the stamp is in nanoseconds instead of seconds, perform conversion + // If the stamp is larger than the max of int32, we assume the stamp is in + // nanoseconds instead of seconds and perform conversion if (*it > std::numeric_limits::max()) { stamp *= 1e-9; }