[ROS2] Segfault when the number of intensity_edges keypoints is 0
With ROS2 if the intensity_edge keypoint parameter is enable and we got 0 intensity_edges keypoints in a frame, the process of the lidar_slam died.
When debugging, the problem come from the localization part of the slam, in the line :
pcl::transformPointCloud(*this->CurrentUndistortedKeypoints[k], currWorldKeypoints, this->Tworld.matrix());
because this->CurrentUndistortedKeypoints[k] is empty
Edited by Arthur Bourbousson