matterbridge-roborock-vacuum-plugin
Version:
Matterbridge Roborock Vacuum Plugin
13 lines • 866 B
TypeScript
import type { B01Pose, B01RoomMatrix } from './types.js';
/**
* Resolve a live robot pose to a room ID using the decoded roomMatrix grid.
* MUST NEVER THROW. Returns undefined whenever the pose or matrix is missing,
* malformed, or the pixel encoding cannot be confidently resolved — the real
* wire encoding of `roomMatrix` is unconfirmed against actual Q10 firmware
* (no reference implementation researched decodes it either). This is an
* intentional safe no-op until a real device capture (via the `b01-pose-info`
* CLI command) confirms the byte layout. Do not guess here — a wrong room ID
* is worse than no room ID, since it would silently corrupt `currentArea`.
*/
export declare function resolveRoomFromPose(pose: B01Pose | undefined, roomMatrix: B01RoomMatrix | undefined): number | undefined;
//# sourceMappingURL=roomMatrixResolver.d.ts.map