I'm trying to create bounding box around “non ground” objects with PCL and measure its dimensions.
My pipeline looks like this:
Getting XYZ cloud points → Pass Through → Voxel Grid → Statistical outline removal → Euclidean clusterization → Moment of inertia estimation → Some trivial math for getting length, width and height.
But I’m stuck with problem:
As you can see there is an “empty” space between ground and object, because there was no information about “inner” points. Thats why I can’t create proper AABB around my object.
So, my question is: how can I “reconstruct” this surface to create proper AABB around my object? Like its standing on a ground plane and not flying? I’m pretty new in PCL, may be I’m missing something trivial?