[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
Odom node crashes when unstructured pointcloud with width=0 is given, due to division by zero error #40
When dlio::OdomNode::publishCloud(published_cloud, T_cloud) is called with published_cloud having a width of 0, the odometry node will crash due to a propagated division by zero error. This happens because publishCloud calls the following method with the copy_all_fields argument set to true (by default):
The division by width results in an uncaught division by zero error. This is easily fixed by calling pcl::transformPointCloud with copy_all_fields set to false.
When
dlio::OdomNode::publishCloud(published_cloud, T_cloud)
is called withpublished_cloud
having awidth
of0
, the odometry node will crash due to a propagated division by zero error. This happens becausepublishCloud
calls the following method with thecopy_all_fields
argument set totrue
(by default):This method furthermore calls the following
assign
method:The division by
width
results in an uncaught division by zero error. This is easily fixed by callingpcl::transformPointCloud
withcopy_all_fields
set tofalse
.