diff --git a/src/glim/common/cloud_deskewing.cpp b/src/glim/common/cloud_deskewing.cpp index 94162d5e..055b408e 100644 --- a/src/glim/common/cloud_deskewing.cpp +++ b/src/glim/common/cloud_deskewing.cpp @@ -60,6 +60,10 @@ std::vector CloudDeskewing::deskew( const std::vector& times, const std::vector& points) { // + if (times.empty()) { + return std::vector(); + } + if (imu_poses.empty()) { return deskew(T_imu_lidar, Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero(), times, points); }