Skip to content

Commit

Permalink
Update ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Benedikt Mersch <[email protected]>
  • Loading branch information
tizianoGuadagnino and benemer authored Oct 15, 2024
1 parent 70b5832 commit ab51ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros/src/kinematic_icp_ros/server/LidarOdometryServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ auto TimeToROSStamp(const double &time) {
};
double ROSStampToTime(const builtin_interfaces::msg::Time stamp) {
double time = static_cast<double>(stamp.sec);
time += static_cast<double>(stamp.nanosec) * 1e9;
time += static_cast<double>(stamp.nanosec) * 1e-9;
return time;
};
} // namespace
Expand Down

0 comments on commit ab51ff8

Please sign in to comment.