Skip to content

Commit

Permalink
deal with empty point cloud (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 authored Nov 7, 2024
1 parent 2e95b84 commit 5ab10b8
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 5ab10b8

Please sign in to comment.