ethz-asl / lidar_align

A simple method for finding the extrinsic calibration between a 3D lidar and a 6-dof pose sensor
868 stars 269 forks source link

About the code segment controlled by the estimate_point_times parameter #42

Open SenHe524 opened 1 year ago

SenHe524 commented 1 year ago

The code is as follows:

 if (config.estimate_point_times) {
      // 100000 * 600 / pi
      const double timing_factor = 19098593.171 / config.lidar_rpm;
      const double angle = std::atan2(point.x, point.y);
      // cut out wrap zone
      if (std::abs(angle) > 3.0) {
        continue;
      }
      store_point.intensity = angle * timing_factor;
      if (!config.clockwise_lidar) {
        store_point.intensity *= -1.0;
      }
    }

I would like to ask the author and friends, how should I understand this code? @ZacharyTaylor