gabyx / ApproxMVBB

Fast algorithms to compute an approximation of the minimal volume oriented bounding box of a point cloud in 3D.
Mozilla Public License 2.0
441 stars 93 forks source link

PCL point cloud as input #49

Closed brunoeducsantos closed 2 years ago

brunoeducsantos commented 2 years ago

Hi @gabyx , Thanks for the excellent work.

This post is not an issue, more like a question. I wonder if there is a way to provide the approxMVBB method with a pcl point cloud instead of a Eigen Matrix ?

Thanks, Bruno

brunoeducsantos commented 2 years ago

One can use getMatrixXfMap() method. Thanks

Rrycbarm commented 2 years ago

@brunoeducsantos Could you please share a snippet of code? I'm trying to import a pcl pointcloud but I get a "YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY" assertion failed and I'm not able to solve it.