ARCoreInsideOutTrackingGearVr icon indicating copy to clipboard operation
ARCoreInsideOutTrackingGearVr copied to clipboard

Detecting real world barriers

Open tr0043t opened this issue 6 years ago • 7 comments

Is there a practical method to use signals or cues from the camera to detect and warn (audibly or visually or both) of real world barriers or other hazards -- e.g. walls or other obstacles?

tr0043t avatar Jun 24 '18 04:06 tr0043t

That's a fantastic idea and I started working on it yesterday. By measuring the distance between detected feature point and head position it should be possible to only show the boundary when coming to close to an object.

ChristophGeske avatar Jun 26 '18 00:06 ChristophGeske

Excellent! Thanks!

tr0043t avatar Jun 26 '18 00:06 tr0043t

I added a kind a boundary system that can be turned on with the press of the index finger trigger button. I did not use the distance to barriers for enabling the boundary detection and instead gave the user the power to turn the feature on and of manually giving him more control.

It's a very simple solution as a first step and there is much that could be improved. For example the point cloud could be stored for longer (right now it only displays the currently detected feature points in the surrounding)

ChristophGeske avatar Jun 30 '18 21:06 ChristophGeske

Will try this ASAP. Thanks!

tr0043t avatar Jun 30 '18 21:06 tr0043t

Could you make it work on the Cardboard version and show detected walls, and also only show when you get close to it? I think that would improve it.

Heath123 avatar Sep 16 '18 17:09 Heath123

Maybe making the points bigger too would help.

Heath123 avatar Sep 16 '18 17:09 Heath123

In this unity talk a good solution is presented which I will try to use for improving the boundary detection. https://www.youtube.com/watch?v=jD1gBuVRtZs @Heath123 your suggestion to show the detected walls only when you get close is good I think that's the way to go and I have some ideas already. Thanks for the suggestion.

ChristophGeske avatar Nov 30 '18 04:11 ChristophGeske