From 3874f2fa32f49f3571e51d1cad00dc5de31384ff Mon Sep 17 00:00:00 2001 From: JosefGst Date: Tue, 26 Sep 2023 17:01:16 +0800 Subject: [PATCH] fix time increment error --- 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];