PDA

View Full Version : Transferring phone acceleration data to a locator?


Royalcolornetwork
12-14-2010, 12:09 AM
Hello everyone,

As a little experiment, I'm playing around with recording the acceleration and orientation data from a cellphone and getting that information into Maya.

I've written a small Android App that records:


System Time (The phone's internal time in milliseconds)
X, Y, Z Acceleration ( Acceleration is measured in SI units (m/s2). If the device is a rest lying flat on its back, the Z acceleration will be about 9.8.)
Yaw, Pitch, Roll (In degrees)
And uploads the information. Here's the raw data from a short recording:
Time:(1292281974595 1292281974771 1292281974870 12922819751781292281975272 1292281975376 1292281975470 12922819755801292281976158 1292281976350 1292281976456 12922819767281292281976826 1292281976933 1292281977045 12922819771761292281977272 1292281977374 1292281977476 12922819776631292281977762 1292281977865 1292281978028 12922819787951292281978906 1292281979006 1292281979102 12922819792041292281979300 1292281979406 1292281979507 12922819796001292281979697 1292281979824 1292281979926 12922819800981292281980347 1292281980454 1292281980601 12922819806971292281980800 1292281980900 1292281981004 12922819811041292281981201 1292281981304 1292281981404 12922819815101292281981611 1292281981961 1292281982148 12922819822511292281982353 1292281982454 1292281982602 12922819827051292281982803 1292281982898 1292281982997 12922819830971292281983197 1292281983421 1292281983525 12922819836891292281983784 1292281983885 1292281983990 12922819840891292281984193)XAccel:(0.44947 -0.29965 -0.61292 0.0 -0.44947 -0.14982 -1.22583 -1.06239 -5.20297 -1.6753 5.66606 13.48414 19.6133 -13.48414 2.75131 19.44986 19.6133 -8.88047 8.5672 16.08563 19.6133 -7.50481 17.46129 6.8919 19.6133 -3.67749 12.09487 19.6133 -6.27898 9.49338 19.6133 -9.19374 11.18231 19.6133 -8.11773 9.34356 13.02105 -11.48195 -9.19374 2.45166 12.09487 0.14982 -13.78379 0.29965 9.34356 -9.34356 -4.44023 3.82732 6.12916 -16.69855 0.44947 2.90113 -8.26755 -0.29965 -1.52548 -2.13839 -1.98857 -1.52548 -1.83875 -1.37566 -2.13839 -0.61292 -0.44947 -0.44947 -0.44947 0.14982 0.61292 0.29965 0.61292)YAccel:(2.90113 3.67749 2.28822 2.45166 2.28822 1.98857 3.06458 2.45166 3.97714 2.75131 -2.60149 -2.45166 -8.11773 4.12697 -1.83875 -7.19154 0.14982 2.75131 -13.63397 -5.81589 -2.28822 1.52548 -8.88047 -8.26755 7.65464 -0.0 -6.74207 1.22583 -0.91256 -7.04172 0.44947 -0.0 -4.27679 0.14982 -0.76274 -8.41737 -5.81589 -7.50481 -0.14982 -3.67749 -4.44023 -6.57863 0.29965 -3.2144 -2.75131 -2.28822 2.60149 -0.76274 -4.59006 0.14982 -1.6753 -2.90113 1.98857 -0.61292 0.29965 0.91256 1.06239 1.22583 1.06239 0.91256 0.61292 0.91256 0.29965 0.61292 0.76274 1.06239 0.91256 0.29965 0.44947)ZAccel:(8.5672 9.34356 8.73064 9.03029 8.88047 9.34356 8.11773 10.41957 9.64321 8.73064 5.66606 6.57863 11.48195 16.08563 8.5672 5.20297 15.00962 10.86904 4.12697 5.66606 13.93362 7.35499 5.05315 4.44023 17.61111 5.51624 5.66606 10.25612 7.04172 6.74207 10.41957 7.65464 5.96571 13.17088 8.26755 7.50481 8.5672 13.3207 11.6454 4.27679 8.26755 9.95647 13.17088 6.4288 8.11773 13.3207 9.64321 6.27898 7.04172 16.54872 6.74207 11.18231 9.80665 8.41737 9.34356 8.5672 9.80665 9.49338 8.88047 9.03029 9.49338 9.80665 9.34356 9.34356 9.03029 9.95647 9.49338 9.03029 9.34356)Pitch:(-20.77083 -18.6875 -21.48438 -14.64062 -15.47005 -20.04531 -20.04531 -20.46875 -13.17188 -19.95312 -17.20312 17.96875 9.28125 19.67188 -11.125 11.54688 19.65625 -0.34375 -11.09375 55.09375 18.82812 5.4375 -8.25 26.03125 45.25 -16.1875 0.0 26.78125 -3.15625 40.88984 40.88984 -1.14062 0.0 55.07461 55.07461 3.78125 35.0625 20.46875 23.10938 0.59375 36.73438 16.85938 41.88828 41.88828 26.54688 12.51562 8.0 -13.75 5.92188 26.1875 -0.35938 13.9375 14.09375 -8.82812 4.17188 -1.8125 -5.90625 -6.04688 -7.26562 -6.67188 -5.71875 -3.60938 -5.29688 -2.97344 -2.97344 -0.08359 -6.07812 -5.5 -1.90625)Yaw:(178.27864 178.125 172.75 172.53125 172.57864 172.84271 172.84271 172.8125 172.84375 162.78125 163.14062 177.17188 187.70312 188.0625 166.1875 179.04688 194.17188 207.6875 174.125 181.10938 193.53125 204.15625 173.14062 187.85938 188.21875 209.29688 182.26562 191.20312 209.09375 206.69414 206.69414 209.20312 178.82812 193.86679 193.86679 176.5625 191.34375 203.82812 179.70312 160.04688 180.45312 200.76562 187.63841 187.63841 172.8125 198.09375 173.0625 154.57812 182.46875 192.65625 162.21875 171.875 183.09375 156.45312 170.01562 180.35938 180.01562 179.5625 179.60938 179.65625 179.6875 179.59375 179.92188 179.51328 179.51328 178.29062 178.60938 178.73438 178.5625)Roll:(3.88073 2.85938 -1.70312 -3.89062 2.01016 -4.79844 -4.79844 -8.0625 -5.65625 -26.51562 -10.375 42.26562 62.5 54.35938 -39.07812 17.4375 65.46875 52.5625 -38.375 31.03125 63.21875 54.25 -44.98438 59.67188 36.29688 45.60938 -33.6875 53.9375 62.21875 19.49063 19.49063 61.98438 -50.23438 19.9207 19.9207 -44.35938 39.64062 51.5 -36.90625 -38.28125 23.48438 52.1875 -25.42096 -25.42096 2.375 47.46875 -34.65625 -23.96875 31.17188 36.10938 -45.25 3.6875 14.09375 -39.5625 -2.04688 -9.26562 -13.92188 -11.40625 -9.04688 -11.60938 -8.625 -12.67188 -3.5625 -5.05469 -5.05469 1.06432 0.875 3.67188 1.90625)

What would be the best way to transfer this movement and orientation data into a locator? I don't have a huge amount of MEL experience, but I am familiar with it, as well as general programming.

Thank you in advance!

CGTalk Moderation
12-14-2010, 12:09 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.