Skip to content

Commit

Permalink
fix(autoware_pointcloud_preprocessor): fix variableScope (autowarefou…
Browse files Browse the repository at this point in the history
…ndation#8447)

* fix:variableScope

Signed-off-by: kobayu858 <[email protected]>

* refactor:use const

Signed-off-by: kobayu858 <[email protected]>

---------

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Aug 14, 2024
1 parent 73127b7 commit 142795a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,13 +217,12 @@ void DistortionCorrector<T>::undistortPointCloud(
// If there is a point in a pointcloud that cannot be associated, record it to issue a warning
bool is_twist_time_stamp_too_late = false;
bool is_imu_time_stamp_too_late = false;
double global_point_stamp;

for (; it_x != it_x.end(); ++it_x, ++it_y, ++it_z, ++it_time_stamp) {
bool is_twist_valid = true;
bool is_imu_valid = true;

global_point_stamp =
const double global_point_stamp =
pointcloud.header.stamp.sec + 1e-9 * (pointcloud.header.stamp.nanosec + *it_time_stamp);

// Get closest twist information
Expand Down

0 comments on commit 142795a

Please sign in to comment.