mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 18:10:47 -04:00
yaya
This commit is contained in:
@@ -31,7 +31,10 @@ export default function KinectPanel() {
|
||||
|
||||
const handlePointCloudFrame = (meta = {}, buffer) => {
|
||||
const normalized = normalizeBinaryPayload(buffer);
|
||||
if (!normalized) return;
|
||||
// The current 3D viewer only supports grid frames because the mesh needs
|
||||
// the original Kinect pixel layout. Ignore old packed-point cached
|
||||
// frames so they cannot silently render as the retired dot-cloud view.
|
||||
if (!normalized || !meta?.grid) return;
|
||||
setPointCloudFrame({ meta, buffer: normalized });
|
||||
setActiveView('3d');
|
||||
setRequestError(null);
|
||||
|
||||
Reference in New Issue
Block a user