• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by JaimeBGarcia · Mar 22, 2018 at 07:44 AM · augmented realitygpsdistance check

Get Distances between mobile phone and object in real world

Hi guys! I am working on an enterprise which needs something a bit different as mobile App. They want an application who could measure the distance between you, holding the mobile phone and running Unity of course, and a object placed in real world. But without focusing the camera/mobile phone to the object, cause the idea is to do your job and get the distance at the same time. I have tried with GPS, but they want a precission of 0.5m, so it doesnt work very well. And i have tried with AR but they need markers, and that means that you have to focus the camera/mobile phone to the object... Any idea for this problem? Thank you so much and sorry for my english.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Baktillus · Mar 22, 2018 at 10:18 AM

Why can't you focus the camera? You don't need to render the camerafeed to display, you could just run the camera in continuous focus mode (using vuforia which this sounds like) and still find your tracker and calculate the distance.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JaimeBGarcia · Mar 22, 2018 at 11:01 AM 0
Share

I cant focus the camera because the employee is working. He cant take the camara/mobile and focus to the point/object cause he is working at that moment.

avatar image Legend_Bacon JaimeBGarcia · Mar 22, 2018 at 12:19 PM 0
Share

If they're not pointing the camera at the object, how can the camera estimate the distance to said object?

Could you please explain what kind of situation that employee is in, and what the app would need to do in that situation?

avatar image Baktillus · Mar 22, 2018 at 04:20 PM 0
Share

So you want to find the distance to an object without really pointing anything at it? Does that object have any technical abilities like wifi? I realise you said you tried GPS, what kind of object are you trying to locate?

With wifi I know that there is some way to send a signal back and forth to calculate distance by measuring the delay basically but i'm not sure how precise that gets.

I think we thought you can point the device because you wrote

measure the distance between you, holding the mobile phone and running Unity

avatar image JaimeBGarcia · Mar 22, 2018 at 04:42 PM 0
Share

Yes, i think i will need bluetooth or wifi to get what we want. Basically the situation is the following one: one employee in an area, working with both hands in a nuclear plant (so cant hold the camera to focus anything), and some points in that area that emit radioactivity. So we need to check continuously the distance between the employee and those points. The problem is that i dont know how to program the app to do that (connect two devices, or a device with other object with wifi or bluetooth). I mean other object, cause we can put a beacon or any receptor on those points that emit radioactivity. Thank you for ur answers guys, hope you can help me ^^

avatar image Baktillus JaimeBGarcia · Mar 23, 2018 at 08:58 AM 0
Share

I just found this! Seems to only apply to Android so far.
For Bluetooth there are a bunch of links to be found here.

Good luck! Sounds like a really interesting and fun project

Oh, if you get either of these to work, my first idea from the top of my head would be this: Send message with a timestamp (system time) that gets echoed back from the other device. Once it reaches your device again, you have the delta time it took the message to roundtrip.
Now, with the time and the speed of the connection used, you can calculate a rough distance. EDIT: There is apparently a lot more to wifi distance calculations than what i originally wrote; you can google around and find some papers on the topic

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

79 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there a way to access GPS data/Input.Location without wifi? On my device (S7) it only works with. 0 Answers

ARCore tracking maximum distance 2 Answers

Looking for Geo Augmented Reality tools 2 Answers

Can measure distance between camera and object placed with ARCore without focusing the camera? 0 Answers

ARCore - prefab doesn't spawn at correct position 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges