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
The default point type used in Velodyne LiDAR is velodyne_pointcloud::PointXYZIR, which does not have a field called time. This information may be needed in some LiDAR-inertial odometry algorithms (e.g., Fast-LIO). One workaround is to compute a rough timestamp for each point and save them into the intensity field.
for (size_t i = 0; i < cloud->size(); ++i) {
cloud->points[i].intensity = float(double(i) / double(cloud->size()));
} // you can use static_cast if you want
Alternatively, if we want to create a new point type named PointXYZIRT that includes the time field, we can create a header file as follows and use it in the program.
Some user reached out for this feature request. I will document some solutions in this issue.
The text was updated successfully, but these errors were encountered: