SteveMacenski / spatio_temporal_voxel_layer

A new voxel layer leveraging modern 3D graphics tools to modernize navigation environmental representations
http://wiki.ros.org/spatio_temporal_voxel_layer
GNU Lesser General Public License v2.1
620 stars 184 forks source link

Support other frustum shapes #239

Open tonynajjar opened 2 years ago

tonynajjar commented 2 years ago

The Kinect Azure is commonly used as depth camera and its frustum is not rectangular, it's either circular or an hexagonal depending on the mode. https://docs.microsoft.com/en-us/azure/kinect-dk/hardware-specification#depth-camera-supported-operating-modes

It would be nice to support other shapes than rectangular

SteveMacenski commented 2 years ago

That it mighty interesting indeed. The same logic as used in the depth camera frustum model using the 6 planes would work for hexagonal ones as well (just now with 8 planes). I'd be happy to merge something if a contribution was made to support that.

Circular is a bit easier, that would just be checking a radius and 2 planes (or even if being that simple, just range)

tonynajjar commented 2 years ago

We were almost going to give a shot implementing it but realized that gazebo/OGRE also doesn't support other frustum shapes (looks like they are really rare). We instead went with clipping the circular frustum to a rectangular so this is low prio for us.