RoomPlan

RSS for tag

Create parametric 3D scans of rooms and room-defining objects.

Posts under RoomPlan tag

200 Posts

Post

Replies

Boosts

Views

Activity

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)
1
0
764
Nov ’23
Multiroom examples
Hi all. Can anyone show the code for multiroom on swiftUI? And another question, is it possible to change the parameters (dimensions) of walls, doors, windows in an already scanned room by entering real dimensions from a laser tape measure? Because the scanned object has dimensional errors of up to 3 cm. Thanks.
0
0
560
Nov ’23
RoomPlan error "Room size exceeded" during Lidar Scanning
Hello, we are using the RoomPlan API and our users are facing issues during scanning with more than 10% frequency rate. The errors are of different type but aren't really suiting the context. For example, the error message "Roomsize exceeded" (translated from German) is popping up even though the room is relatively small. Bigger rooms are not a problem. We would like to know what is triggering errors exactly so that we can reproduce it. We are going to build workarounds for it, like snapshotting the ARSession to continue later ideally. Unfortunately on errors the ARSession is ended and all data scanned is lost. Has anyone else encounters this?
3
1
1.1k
Nov ’23
iOS17 : RoomPlan CaptureSession , Symbol not found
Our app is available in the App Store and it's working well on ios16 devices. A few days ago, we noticed in Organizer weird bugs coming from ios17, with the only hint "NO_CRASH_STACK". After installing ios17 on an iPhone, we were able to reproduce the crash directly at launch, but only when the app is downloaded from the appstore (no crash when the app is installed with Xcode 15 beta) "type": "EXC_CRASH", "signal": "SIGABRT" }, "termination": { "code": 4, "flags": 518, "namespace": "DYLD", "indicator": "Symbol missing", "details": [ "(terminated at launch; ignore backtrace)" ], "reasons": [ "Symbol not found: _$s8RoomPlan0A14CaptureSessionCACycfc", "Referenced from: <XXXX----XXXXXXX> /Volumes/VOLUME//.app/", "Expected in: <XXXX--**-XXXXX-XXXXXXX> /System/Library/Frameworks/RoomPlan.framework/RoomPlan" ] Does Anybody else encounter this issue? What should we do to solve this? thanks!
3
0
1.3k
Oct ’23
CV3DSLAMAnchorUpdateCopySessionID
I got multiple crashes with the issue that the app has crashed in the SlamEngine during CV3DSLAMAnchorUpdateCopySessionID. There is no pattern when this occurs and I do not know how to reproduce this error but since it is occuring multiple times I thought i will ask in this forum if anyone has a similar issue or knows a fix for this.
3
1
1.4k
Oct ’23
Roompaln wall group objects apply texture
I am writing to seek assistance with a challenge I am facing while working on a 3D model rendering project. I believe your expertise in this area could be immensely helpful in resolving the issue. The problem I am encountering involves difficulties in displaying textures on both parent and child nodes within the 3D model. Here are the key details of the problem: This model contents wall_grp(doors, windows and wall) objects. We are using roomplan data in SCNView. This code dependent on scene kit and room plan apis When we are comment childnode code its working but in this case we don’t have windows and door on wall. func updateWallObjects() { if arch_grp.count > 0 { if !arch_grp.isEmpty { for obj in arch_grp[0].childNodes { let color = UIColor.init(red: 255/255, green: 229/255, blue: 204/255, alpha: 1.0) let parentNode = obj.flattenedClone() for childObj in obj.childNodes { let childNode = childObj.flattenedClone() let childMaterial = SCNMaterial() childNode.geometry?.materials = [childMaterial] if let name = childObj.name { if (removeNumbers(from: name) != "Wall") { childNode.geometry?.firstMaterial?.diffuse.contents = UIColor.white } else { childNode.geometry?.firstMaterial?.diffuse.contents = color } } childObj.removeFromParentNode() parentNode.addChildNode(childObj) } let material = SCNMaterial() parentNode.geometry?.materials = [material] parentNode.geometry?.firstMaterial?.diffuse.contents = color obj.removeFromParentNode() arch_grp[0].addChildNode(parentNode) } } } }``` Please suggest us
0
0
753
Oct ’23
When we try to export CapturedRoom getting cannotCreateNode(path: "/9EE71ED0F8D6415496A7B9F0C3671DB0321") in
We are using the RoomPlan API to capture data, which is stored in the 'CapturedRoom' variable in our code (referred to as 'finalResult'). We then attempt to save a USDZ file in the file manager. Sometimes it works, but other times, we encounter issues like the one below Coding Error: in _IsValidPathForCreatingPrim at line 3338 of usd/stage.cpp -- Path must be an absolute path: <> cannotCreateNode(path: "/9EE71ED0F8D6415496A7B9F0C3671DB0321") This is that code we are using for shaving CapturedRoom data func saveFileLocal() { if let finalResult { let fm = FileManager.default let documentsURL = fm.urls(for: .documentDirectory, in: .userDomainMask).first! //let documentsURL = URL.documentsDirectory let fileName = "\(UUID().uuidString).usdz" let fileURL = documentsURL.appendingPathComponent(fileName) do { try finalResult.export(to: fileURL) } catch { print(error) } } } Please help us.
2
0
719
Oct ’23
Path must be an absolute path: <> cannotCreateNode(path: "")
We are trying to save usdz file in file manager some time its saved but some time we are getting the error. Like: path.absoluteURL file:///var/mobile/Containers/Data/Application/6D14A430-47B4-45F2-9D0D-6C31588A6A03/Documents/2896837C-C7E0-4FA8-BFE2-21A59B26D801.usdz Warning: in SdfPath at line 151 of sdf/path.cpp -- Ill-formed SdfPath &lt;/2896837CC7E04FA8BFE221A59B26D801&gt;: syntax error Coding Error: in _IsValidPathForCreatingPrim at line 3338 of usd/stage.cpp -- Path must be an absolute path: &lt;&gt; cannotCreateNode(path: "/2896837CC7E04FA8BFE221A59B26D801") func saveFileLocal() { if let finalResult { let fm = FileManager.default var path = fm.urls(for: .documentDirectory, in: .userDomainMask).first! let fileName = "(UUID().uuidString).usdz" path.appendPathComponent(fileName) do { try finalResult.export(to: path.absoluteURL) } catch{ print(error) } } } func removeFiles() { var filePath = "" let fm = FileManager.default let path = fm.urls(for: .documentDirectory, in: .userDomainMask).first! do{ let content = try fm.contentsOfDirectory(atPath: path.path) for c in content{ filePath = path.appendingPathComponent(c).absoluteString if let url = URL(string: filePath){ try fm.removeItem(at: url) } } } catch{ print(error) } }
8
0
1.6k
Oct ’23
Unable to export a captured RoomPlan
Hi! I'm currently doing a simple RoomCaptureView-based room capture (iOS 17, iPhone 15 super mega ultra pro max), and I'm unable to export anything I capture, even though I have a dollhouse I can play with after the export. Attached is a screen grab of the doll-house expand/collapse view. (it always fails) My export code is in the RoomCaptureView delegate. The passed in error is nil. func captureView(didPresent processedResult: CapturedRoom, error: (Error)?) { let fm = FileManager() do { let documentDirectoryURL = try fm.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true) let now = generateCurrentTimeStamp() // of the form 2023_10_02_09_45_58 let destinationURL = documentDirectoryURL.appendingPathComponent("\(now).usdz") try processedResult.export(to: destinationURL) } catch { print("oops no processed result? \(error)") } } The constructed URL is: file:///var/mobile/Containers/Data/Application/7DD98157-909A-40A1-9271-1AFCD5336E8B/Documents/2023_10_02_09_45_58.usdz The error in the catch is (not sure where the rest of my path went...): ▿ Error ▿ cannotCreateNode : 1 element - path : "/2023_10_02_09_45_58" And this is printed to the console: Warning: in SdfPath at line 151 of sdf/path.cpp -- Ill-formed SdfPath </2023_10_02_09_38_17>: syntax error Coding Error: in _IsValidPathForCreatingPrim at line 3338 of usd/stage.cpp -- Path must be an absolute path: <> The same sequence happens if I use any of the different export types (mesh-default, parametric, model). I'd attach my project but looks like zip files and dropbox links are forbidden here. If you want a small sample project, feel free to email me at markd at borkware dot com (since looks like emails are forbidden here too) Thanks in advance! I'd love to present this to my cocoaheads in a couple of weeks.
4
0
1.1k
Oct ’23
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)
Replies
1
Boosts
0
Views
764
Activity
Nov ’23
Multiroom examples
Hi all. Can anyone show the code for multiroom on swiftUI? And another question, is it possible to change the parameters (dimensions) of walls, doors, windows in an already scanned room by entering real dimensions from a laser tape measure? Because the scanned object has dimensional errors of up to 3 cm. Thanks.
Replies
0
Boosts
0
Views
560
Activity
Nov ’23
RoomPlan Sample Code
I'm looking for the full sample code from WWDC23 session https://developer.apple.com/videos/play/wwdc2023/10192
Replies
1
Boosts
0
Views
673
Activity
Nov ’23
RoomPlan error "Room size exceeded" during Lidar Scanning
Hello, we are using the RoomPlan API and our users are facing issues during scanning with more than 10% frequency rate. The errors are of different type but aren't really suiting the context. For example, the error message "Roomsize exceeded" (translated from German) is popping up even though the room is relatively small. Bigger rooms are not a problem. We would like to know what is triggering errors exactly so that we can reproduce it. We are going to build workarounds for it, like snapshotting the ARSession to continue later ideally. Unfortunately on errors the ARSession is ended and all data scanned is lost. Has anyone else encounters this?
Replies
3
Boosts
1
Views
1.1k
Activity
Nov ’23
How do I convert a 'roomplan' USDZ file into a mesh object?"
We have a 'roomplan' API object in a USDZ file that we need to display as a mesh object. Please suggest how to convert it.
Replies
0
Boosts
0
Views
687
Activity
Nov ’23
How to get a 2D floor plan with dimensions from RoomPlan
I am in need to create a 2D floor plan with the dimensions mentioned, from the generated 3D result of RoomPlan. Is there a way to create it in a little easy-to-understand manner? Or will it require manual elaborate coding?
Replies
25
Boosts
4
Views
14k
Activity
Oct ’23
iOS17 : RoomPlan CaptureSession , Symbol not found
Our app is available in the App Store and it's working well on ios16 devices. A few days ago, we noticed in Organizer weird bugs coming from ios17, with the only hint "NO_CRASH_STACK". After installing ios17 on an iPhone, we were able to reproduce the crash directly at launch, but only when the app is downloaded from the appstore (no crash when the app is installed with Xcode 15 beta) "type": "EXC_CRASH", "signal": "SIGABRT" }, "termination": { "code": 4, "flags": 518, "namespace": "DYLD", "indicator": "Symbol missing", "details": [ "(terminated at launch; ignore backtrace)" ], "reasons": [ "Symbol not found: _$s8RoomPlan0A14CaptureSessionCACycfc", "Referenced from: <XXXX----XXXXXXX> /Volumes/VOLUME//.app/", "Expected in: <XXXX--**-XXXXX-XXXXXXX> /System/Library/Frameworks/RoomPlan.framework/RoomPlan" ] Does Anybody else encounter this issue? What should we do to solve this? thanks!
Replies
3
Boosts
0
Views
1.3k
Activity
Oct ’23
Roomplan API default app like Measure app ipad with export to usdz
Hi, can you add in measure support for lidars scan using Roomplan api with export to usdz, now mesh2mesh have export dotBim and chech if usdz export have good semantics data in it to have good conversion. Also to have in measure app comparator to import usdz and check space or part for similarity or difference. best regards, ivo
Replies
0
Boosts
0
Views
658
Activity
Oct ’23
CV3DSLAMAnchorUpdateCopySessionID
I got multiple crashes with the issue that the app has crashed in the SlamEngine during CV3DSLAMAnchorUpdateCopySessionID. There is no pattern when this occurs and I do not know how to reproduce this error but since it is occuring multiple times I thought i will ask in this forum if anyone has a similar issue or knows a fix for this.
Replies
3
Boosts
1
Views
1.4k
Activity
Oct ’23
Is it possible to combine RoomCaptureView animations with RoomCaptureSessionDelegate?
Hi! I'd like to use a RoomCaptureSessionDelegate to provide custom coaching. I don't want to re-do the entire user interface while scanning a room. Is it possible to combine the two (like getting the animations from the RoomCaptureView into a custom ARKit session, or to use the delegate of the RoomCaptureView capture session)?
Replies
0
Boosts
0
Views
620
Activity
Oct ’23
Display the result of dimension in Roomplan in the Preview Result of 3D
How can i display the dimension of sufrace or object in roomplan in the 3D model result value ? I have the result of 3D like this and the result dimension in the terminal like this and then i wanna make the dimension is display like this image
Replies
0
Boosts
0
Views
471
Activity
Oct ’23
How to decode the data?
After using the roomApi and after scanning I got some files named "Room.json", "Room.usdz". In Room.json file there is a key with a string "coreModel": how can I decode this. - The "coreModel": contains a String
Replies
0
Boosts
0
Views
525
Activity
Oct ’23
What's the accuracy of RoomPlan scanned objects?
Let's say a 10-feet wall. Would RoomPlan return 11, 10.1, or 10.01 feet? Thanks a lot.
Replies
2
Boosts
0
Views
1.7k
Activity
Oct ’23
How to add a node or a 3D object in Roomplan API and then add it to the final Captured Room?
Is it possible to use SceneKit nodes within RoomCaptureView or RoomCaptureSession? If so, then how can I add a 3D object while the scanning process is going on? Will it be possible to add that 3D object to the final 3D captured room?
Replies
0
Boosts
1
Views
703
Activity
Oct ’23
Is apple planning to give Vision Pro camera access to developers in future?
Currently camera access for developers is restricted. Many other frameworks such as roomplan api are also not available in the vision pro. The usage of camera feed is an important one for AR apps. Will this be made available in near future?
Replies
0
Boosts
0
Views
1.1k
Activity
Oct ’23
Is there going to be a ceiling feature in Roomplan api in future?
For Roomplan api, currently there is no feature that detects ceiling or related objects. Can we expect any development in this direction in future?
Replies
0
Boosts
0
Views
429
Activity
Oct ’23
Roompaln wall group objects apply texture
I am writing to seek assistance with a challenge I am facing while working on a 3D model rendering project. I believe your expertise in this area could be immensely helpful in resolving the issue. The problem I am encountering involves difficulties in displaying textures on both parent and child nodes within the 3D model. Here are the key details of the problem: This model contents wall_grp(doors, windows and wall) objects. We are using roomplan data in SCNView. This code dependent on scene kit and room plan apis When we are comment childnode code its working but in this case we don’t have windows and door on wall. func updateWallObjects() { if arch_grp.count > 0 { if !arch_grp.isEmpty { for obj in arch_grp[0].childNodes { let color = UIColor.init(red: 255/255, green: 229/255, blue: 204/255, alpha: 1.0) let parentNode = obj.flattenedClone() for childObj in obj.childNodes { let childNode = childObj.flattenedClone() let childMaterial = SCNMaterial() childNode.geometry?.materials = [childMaterial] if let name = childObj.name { if (removeNumbers(from: name) != "Wall") { childNode.geometry?.firstMaterial?.diffuse.contents = UIColor.white } else { childNode.geometry?.firstMaterial?.diffuse.contents = color } } childObj.removeFromParentNode() parentNode.addChildNode(childObj) } let material = SCNMaterial() parentNode.geometry?.materials = [material] parentNode.geometry?.firstMaterial?.diffuse.contents = color obj.removeFromParentNode() arch_grp[0].addChildNode(parentNode) } } } }``` Please suggest us
Replies
0
Boosts
0
Views
753
Activity
Oct ’23
When we try to export CapturedRoom getting cannotCreateNode(path: "/9EE71ED0F8D6415496A7B9F0C3671DB0321") in
We are using the RoomPlan API to capture data, which is stored in the 'CapturedRoom' variable in our code (referred to as 'finalResult'). We then attempt to save a USDZ file in the file manager. Sometimes it works, but other times, we encounter issues like the one below Coding Error: in _IsValidPathForCreatingPrim at line 3338 of usd/stage.cpp -- Path must be an absolute path: <> cannotCreateNode(path: "/9EE71ED0F8D6415496A7B9F0C3671DB0321") This is that code we are using for shaving CapturedRoom data func saveFileLocal() { if let finalResult { let fm = FileManager.default let documentsURL = fm.urls(for: .documentDirectory, in: .userDomainMask).first! //let documentsURL = URL.documentsDirectory let fileName = "\(UUID().uuidString).usdz" let fileURL = documentsURL.appendingPathComponent(fileName) do { try finalResult.export(to: fileURL) } catch { print(error) } } } Please help us.
Replies
2
Boosts
0
Views
719
Activity
Oct ’23
Path must be an absolute path: <> cannotCreateNode(path: "")
We are trying to save usdz file in file manager some time its saved but some time we are getting the error. Like: path.absoluteURL file:///var/mobile/Containers/Data/Application/6D14A430-47B4-45F2-9D0D-6C31588A6A03/Documents/2896837C-C7E0-4FA8-BFE2-21A59B26D801.usdz Warning: in SdfPath at line 151 of sdf/path.cpp -- Ill-formed SdfPath &lt;/2896837CC7E04FA8BFE221A59B26D801&gt;: syntax error Coding Error: in _IsValidPathForCreatingPrim at line 3338 of usd/stage.cpp -- Path must be an absolute path: &lt;&gt; cannotCreateNode(path: "/2896837CC7E04FA8BFE221A59B26D801") func saveFileLocal() { if let finalResult { let fm = FileManager.default var path = fm.urls(for: .documentDirectory, in: .userDomainMask).first! let fileName = "(UUID().uuidString).usdz" path.appendPathComponent(fileName) do { try finalResult.export(to: path.absoluteURL) } catch{ print(error) } } } func removeFiles() { var filePath = "" let fm = FileManager.default let path = fm.urls(for: .documentDirectory, in: .userDomainMask).first! do{ let content = try fm.contentsOfDirectory(atPath: path.path) for c in content{ filePath = path.appendingPathComponent(c).absoluteString if let url = URL(string: filePath){ try fm.removeItem(at: url) } } } catch{ print(error) } }
Replies
8
Boosts
0
Views
1.6k
Activity
Oct ’23
Unable to export a captured RoomPlan
Hi! I'm currently doing a simple RoomCaptureView-based room capture (iOS 17, iPhone 15 super mega ultra pro max), and I'm unable to export anything I capture, even though I have a dollhouse I can play with after the export. Attached is a screen grab of the doll-house expand/collapse view. (it always fails) My export code is in the RoomCaptureView delegate. The passed in error is nil. func captureView(didPresent processedResult: CapturedRoom, error: (Error)?) { let fm = FileManager() do { let documentDirectoryURL = try fm.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true) let now = generateCurrentTimeStamp() // of the form 2023_10_02_09_45_58 let destinationURL = documentDirectoryURL.appendingPathComponent("\(now).usdz") try processedResult.export(to: destinationURL) } catch { print("oops no processed result? \(error)") } } The constructed URL is: file:///var/mobile/Containers/Data/Application/7DD98157-909A-40A1-9271-1AFCD5336E8B/Documents/2023_10_02_09_45_58.usdz The error in the catch is (not sure where the rest of my path went...): ▿ Error ▿ cannotCreateNode : 1 element - path : "/2023_10_02_09_45_58" And this is printed to the console: Warning: in SdfPath at line 151 of sdf/path.cpp -- Ill-formed SdfPath </2023_10_02_09_38_17>: syntax error Coding Error: in _IsValidPathForCreatingPrim at line 3338 of usd/stage.cpp -- Path must be an absolute path: <> The same sequence happens if I use any of the different export types (mesh-default, parametric, model). I'd attach my project but looks like zip files and dropbox links are forbidden here. If you want a small sample project, feel free to email me at markd at borkware dot com (since looks like emails are forbidden here too) Thanks in advance! I'd love to present this to my cocoaheads in a couple of weeks.
Replies
4
Boosts
0
Views
1.1k
Activity
Oct ’23