Sunday, April 13, 2014

MotionManager, Augmented Reality framework a quick look


Magneto meter.
CMMotoionManager : is the iOS framework to get the motion services provided by the iOS. This services provides app with accelerometer data, rotation-rate data, magnatometer data and other device motion data such as attitude.  The framework supports accessing both raw and processed accelerometer data using block based interfaces. For devices with built in gyro scope, one can retrieve the gyro data as well and process data reflecting attittude and rotation rates of device. One can use both the accelerometer and gyro based data for games or other apps that use motion as input or as a way to enhance overall user experience.

references: https://www.inkling.com/read/learning-ios-programming-alasdair-allan-2nd/chapter-9/the-core-motion-framework

Augmented Reality Framework : 
Augmented reality is a cool and popular technique where you view the world through device you like, say camera of an iPhone or google glass and overlay extra info about those places on top of the real world view.  

The question of why we need this framework irrespective of Map frameworks, is that when we need to find where to place the overlay on the screen for a POI. for e.g. If we have a POI on the north side of you and the device is pointing to the north east, the question is where to show the POI. towards the left or to the center. It all depends on the current position of the device. If the device is sligthly towards the ground, the POI should be shown at the top. If it is pointing to the south, the POI should not be shown at all. The ARKit uses the device's gyroscope and the compass to find out where the device is pointing and the degree of tilt. Using this info it decides where and whether the POI should be shown. 

references: http://www.raywenderlich.com/42266/augmented-reality-ios-tutorial-location-based






No comments:

Post a Comment