Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Good day Team,
I am wondering if you could share your experience in how to retrieve geolocation from eyewear devices and make use of it within Studio. We will appreciate code examples of indoor navigation for users.
Best Regards
Olena
Solved! Go to Solution.
Hello Olena,
I made some search to give you an answer.
In RealWear HMT-1, we can found this thread :
https://realwear.com/question-answer/product-information/does-hmt-1-or-hmt-1z1-have-gps-capability/
This device has a GPS, a compas and gyroscope sensors.
In Hololens, we have these sensors GPS, accelerometer, compass, gyroscope, inclinometer, light and orientation.
To have access to these sensors, we should use Javascript in Vuforia Studio.
More details in these documentations :
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#compatibilit%C3%A9_des_navigateurs
https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope
https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent
https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent
As we can see, it depends heavly of the web browser and so the platform/ Operating System used.
In Vuforia View, in Android, Chrome web browser is used. It is the same in RealWear HMT-1 or Android mobile.
In Vuforia View, in Holoens, Edge web browser is used.
Keep in mind that different GPS sensors exist.
Difference with the accuracy.
In mobile, generally it is sensor with less accuracy. It might be around a few meters.
To be more accurate, it is generallary needed to use Bluetooth beacons.
Hololens 1 and 2, HMT-1 and many mobiles supports Bluetooth.
Now, it might be possible to access to these Beacon Bluetooth sensors by Javascript.
More details here:
https://www.espruino.com/Quick+Start+BLE#puckjs
I didn't check that in my tests.
By using 3 Beacons very well located and who are not moving.
By using the location of 3 or more Beacons, we can calculate excately the position of the device.
It might help to solve the leak about accuracy due to GPS.
By the way, this morning, I have tried to do a test mobile Project to capture the sensor data.
In Preview, I cannot see the values because my laptop doesn't have any sensors.
But it doesn't report any error.
I used the example given in the Mozilla API web pages.
So, I have to publish and to test in my Android smartphone and in Ipad tablet.
Of course, this Javascript can be ported in 2D and 3D eyewears Projects.
Best regards,
Samuel
Hello Olena,
I made some search to give you an answer.
In RealWear HMT-1, we can found this thread :
https://realwear.com/question-answer/product-information/does-hmt-1-or-hmt-1z1-have-gps-capability/
This device has a GPS, a compas and gyroscope sensors.
In Hololens, we have these sensors GPS, accelerometer, compass, gyroscope, inclinometer, light and orientation.
To have access to these sensors, we should use Javascript in Vuforia Studio.
More details in these documentations :
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation_API#compatibilit%C3%A9_des_navigateurs
https://developer.mozilla.org/en-US/docs/Web/API/Gyroscope
https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent
https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent
As we can see, it depends heavly of the web browser and so the platform/ Operating System used.
In Vuforia View, in Android, Chrome web browser is used. It is the same in RealWear HMT-1 or Android mobile.
In Vuforia View, in Holoens, Edge web browser is used.
Keep in mind that different GPS sensors exist.
Difference with the accuracy.
In mobile, generally it is sensor with less accuracy. It might be around a few meters.
To be more accurate, it is generallary needed to use Bluetooth beacons.
Hololens 1 and 2, HMT-1 and many mobiles supports Bluetooth.
Now, it might be possible to access to these Beacon Bluetooth sensors by Javascript.
More details here:
https://www.espruino.com/Quick+Start+BLE#puckjs
I didn't check that in my tests.
By using 3 Beacons very well located and who are not moving.
By using the location of 3 or more Beacons, we can calculate excately the position of the device.
It might help to solve the leak about accuracy due to GPS.
By the way, this morning, I have tried to do a test mobile Project to capture the sensor data.
In Preview, I cannot see the values because my laptop doesn't have any sensors.
But it doesn't report any error.
I used the example given in the Mozilla API web pages.
So, I have to publish and to test in my Android smartphone and in Ipad tablet.
Of course, this Javascript can be ported in 2D and 3D eyewears Projects.
Best regards,
Samuel