From 724c12912aebc3e714b298f4dfe7126e23f4ff3f Mon Sep 17 00:00:00 2001 From: Benedikt Schwab Date: Mon, 31 Oct 2022 15:56:03 +0100 Subject: [PATCH] fixes #2 --- a2d2_ros_preparer/src/lidar/timed_point_cloud_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a2d2_ros_preparer/src/lidar/timed_point_cloud_data.cpp b/a2d2_ros_preparer/src/lidar/timed_point_cloud_data.cpp index d3daad5..87a1512 100644 --- a/a2d2_ros_preparer/src/lidar/timed_point_cloud_data.cpp +++ b/a2d2_ros_preparer/src/lidar/timed_point_cloud_data.cpp @@ -67,7 +67,7 @@ namespace a2d2_ros_preparer { Time TimedPointCloudData::GetMinMaxMiddleTime() const { auto min_time = GetStartTime(); - auto max_time = GetStartTime(); + auto max_time = GetStopTime(); auto min_max_duration = max_time - min_time; return min_time + min_max_duration/2; }