From 1ee6c25494f5cb184cc4f7c4d1acbf37fee01bc1 Mon Sep 17 00:00:00 2001 From: JosefGst Date: Tue, 26 Sep 2023 17:32:14 +0800 Subject: [PATCH] fix time stamp increment --- include/laser_filters/angular_bounds_filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/laser_filters/angular_bounds_filter.h b/include/laser_filters/angular_bounds_filter.h index c4f244bc..22cd8acd 100644 --- a/include/laser_filters/angular_bounds_filter.h +++ b/include/laser_filters/angular_bounds_filter.h @@ -79,7 +79,7 @@ namespace laser_filters if(start_angle < lower_angle_){ start_angle += input_scan.angle_increment; current_angle += input_scan.angle_increment; - start_time.set__sec(start_time.sec + input_scan.time_increment); + start_time.set__nanosec(start_time.nanosec + (input_scan.time_increment * 10e9)); // convert time increment to nanoseconds } else{ filtered_scan.ranges[count] = input_scan.ranges[i];