Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the code segment controlled by the estimate_point_times parameter #42

Open
SenHe524 opened this issue Aug 17, 2023 · 0 comments
Open

Comments

@SenHe524
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant