Skip to content

Room map#

turns an Apple RoomPlan .usdz scan into a compact spatial prompt block (named objects + bounding boxes)

turns an Apple RoomPlan .usdz scan into a compact spatial prompt block (named objects + bounding boxes) β€” tools/room_map.py, 1 tool.

From the module docstring

πŸ—ΊοΈ room_map β€” turn an Apple RoomPlan .usdz scan into a Scout-ready spatial prompt block. The scan's meshes are SEMANTICALLY NAMED (toilet0, sofa_rect0, refrigerator0, wall_, door_, floor__*), so we don't need photos β€” we read object labels + bounding boxes straight out of the USDA geometry and emit a compact, model-friendly map.

tool does
room_map πŸ—ΊοΈ Scout's spatial prior from a RoomPlan .usdz scan.

room_map#

room_map(action: str = 'show', scan_path: str = '') -> Dict[str, Any]

πŸ—ΊοΈ Scout's spatial prior from a RoomPlan .usdz scan.

argument meaning
action "show" (return the map block) | "objects" (flat object list) | "rooms" (room summary)
scan_path optional override path to a .usdz/.usda scan.

source: tools/room_map.py:211

Edit page