Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer committed Nov 7, 2024
1 parent 77091b1 commit 0adb69b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ros/src/kinematic_icp_ros/utils/RosUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>(*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<int32_t>::max()) {
stamp *= 1e-9;
}
Expand Down

0 comments on commit 0adb69b

Please sign in to comment.