I am getting a segmentation fault with pcl::transformPointCloud.
This is all I am getting on the terminal:
ros2 run cpp_tests icp_test
initialized
101201
Transforming
[ros2run]: Segmentation fault
My PCL version is 1.12.1.
The line that is causing the error is:
pcl::transformPointCloud(*cloud_in, *cloud_icp, icp_transform);
cloud_in and cloud_icp are both pcl::PointCloud<pcl::PointXYZ>::Ptr
, and icp_transform is obtained from PCL and is Eigen::Matrix4f
. cloud_in had the input cloud in it, cloud_icp would be empty (it was defined as pcl::PointCloud<pcl::PointXYZ>::Ptr cloud_icp;
but not used before this point).
I would like to solve this issue or find a workaround. As far as I can tell, I have only PCL 1.12.1 on my system. I am using ROS2 humble on Ubuntu 22.04. This was compiled using colcon build --symlink-install
and compiled without any errors.
Thanks.