Skip to content

Commit

Permalink
deal with empty point cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Nov 7, 2024
1 parent 2e95b84 commit 1f97588
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/glim/common/cloud_deskewing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ std::vector<Eigen::Vector4d> CloudDeskewing::deskew(
const std::vector<double>& times,
const std::vector<Eigen::Vector4d>& points) {
//
if (times.empty()) {
return std::vector<Eigen::Vector4d>();
}

if (imu_poses.empty()) {
return deskew(T_imu_lidar, Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero(), times, points);
}
Expand Down

0 comments on commit 1f97588

Please sign in to comment.