vectr-ucla / direct_lidar_inertial_odometry

[IEEE ICRA'23] A new lightweight LiDAR-inertial odometry algorithm with a novel coarse-to-fine approach in constructing continuous-time trajectories for precise motion correction.
MIT License
521 stars 101 forks source link

Always `true` condition? #54

Open VRichardJP opened 1 month ago

VRichardJP commented 1 month ago

What is the point of the branching here:

https://github.com/vectr-ucla/direct_lidar_inertial_odometry/blob/bed8ae38dc7ccfa8b75a869f7afe83a83990a9c1/src/dlio/odom.cc#L474-L489

I ran DLIO on some sample data and I noticed kf.second->points.size() == kf.second->width * kf.second->height is always true. So is there any need for a branching?