Merging multiple scans into a single structure

I am currently working on a project involving the merging of multiple scans into a single structure using Room plan json file. I am facing an issue and would greatly appreciate your assistance in resolving it.

The problem I am encountering is as follows: "Cannot process multiFloorPlan: Invalid room location in structure"

Captured room json file paths:

[https://mimesisfbs.s3.ap-south-1.amazonaws.com/project_3dfile_json/2088a003-5712-4e9f-91eb-601b145ca98e-project_3dfile_json_file.json)

[https://mimesisfbs.s3.ap-south-1.amazonaws.com/project_3dfile_json/10ccd0d9-7843-41bd-a021-a57781231059-project_3dfile_json_file.json)

We are using same code as in example.

[https://developer.apple.com/documentation/RoomPlan/merging_multiple_scans_into_a_single_structure)

You need to either stop the room capture and keeping the AR Session alive:

func stopSession(pauseARSession: Bool) {
uiViewController?.roomCaptureSession.stop(pauseARSession: pauseARSession)
}

then proceed to start the room capture again;

or use relocalization (see explanation below):

https://developer.apple.com/videos/play/wwdc2023/10192/?time=450

Merging multiple scans into a single structure
 
 
Q