I have orientation sensor giving me the orientation angles (or quaternion) in the world's coordinate. Now I get the Linear acceleration from TYPE_LINEAR_ACCELERATION, which gives the acceleration in phone's coordinates. Now the question is how I convert the acceleration from phone's coordinates to world coordinates? thanks
convert linear acceleration into world frames in android
1.4k Views Asked by Isam Abdullah At
1
There are 1 best solutions below
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in ORIENTATION
- Android - AR orientation
- Android screen flips on usb keyboard connection
- Swift - Supported Device Orientation for MPMoviePlayerViewController
- Xcode orientation changes every-time before presentViewController
- Lock Camera orientation to portrait
- Android AR orientation
- How to change output picture orientation in custom camera app? [Android]
- Strange orientation behaviour of MovieViewController
- Revert video to original from mirror in Android
- IOS 8 - After orientation change, Navigation bar is obscured by the status bar
- Fragment restarts when orientation is changed
- Smooth element translate on device orientation change
- UIVisualEffectView changing bounds incorrectly on orientation change
- iOS orientation estimation and heading error
- Sprite Kit game: over world in Portrait mode but battles in Landscape mode?
Related Questions in ACCELEROMETER
- Android accelerometer detect device lying still
- How can I use the Accelerometer for detecting jump in LibGDX?
- Get an accelerometer's device id(or monitor an accelerometer in the backbround) on WinRT
- How to get accurate speed from accelerometer on iOS?
- Android Sensor.TYPE_LINEAR_ACCELERATION reporting wrong values on Galaxy S5
- Windows Phone: how to manage shake events?
- how to use accelerometer sensor to detect and match two toy cars' collision
- iOS orientation estimation and heading error
- How to know if Android device is Flat on table
- How to save previous barometer value to compare it with current Fall Detection Android
- Swift Accelerometer keeps crashing with ScrollView
- iPhone Accelerometer forward,back,left,right
- To detect a fall
- Technique to measure distance from android app (between 0-60 mts)
- Accelerometer stops working/listening
Related Questions in MOTION
- Is it possible to have a command last only while the object is moving?
- AS3 + webcam. Dispatch event on presence
- Three.js importing a character with skeleton from 3ds max
- android detect no movement
- android how to get last movement
- What is the appropriate motion sensor for movement?
- convert linear acceleration into world frames in android
- onTouchListener motion - action up and move
- swipe across button without finger leaving the screen
- Ease of Motion, Programming Tweening, c++
- Motion action up when moving from view to view without lifting finger from the screen
- How do I find exact rest points?
- opencv C++ - Shapes processing and tracking
- How to control the speed of bullets?
- Unity 3D leap motion
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First of all you need Rotation matrix not orientation values
If you have orintation angles you can convert them a rotation matrix
Rotation Matrix from Euler Angles
After you get the rotation matrix if you multiply it with the acceleration in the earth coordinate system you will get the acceleration in the phone coordinate system
a_p = acceleration in the phone coordinate system
R = Rotation Matrix
a_e = acceleration in the earth coordinate system
a_p = R * a_e
and inverse of the rotation matrix is equal to its transpose
R^-1 = R^T
a_e = R^T * a_p
it means if you multiply the transpose of rotation matrix with phones reading you will get acceleration in the earth coordinate system