You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Part of the Calibration parsing code in calibration.cc is used to retag all the laser_rings using the vertical angle. This code runs on the laser_corrections vector but not on the map, thus laser_corrections_map has incomplete initialization.
However, looking through the code, the map is only ever used to emit a YAML of the calibration and does it by using a forward iterator. Thus, the code below could iterate over the vector and we could technically remove that unused variable.
Please complete the following information:
Describe the bug
Part of the Calibration parsing code in calibration.cc is used to retag all the laser_rings using the vertical angle. This code runs on the laser_corrections vector but not on the map, thus laser_corrections_map has incomplete initialization.
velodyne/velodyne_pointcloud/src/lib/calibration.cc
Lines 170 to 195 in 2e4e582
However, looking through the code, the map is only ever used to emit a YAML of the calibration and does it by using a forward iterator. Thus, the code below could iterate over the vector and we could technically remove that unused variable.
velodyne/velodyne_pointcloud/src/lib/calibration.cc
Lines 240 to 249 in 2e4e582
To Reproduce
Read code
Expected behavior
Not have redundant datastructures.
Additional context
The text was updated successfully, but these errors were encountered: