Skip to content

Instantly share code, notes, and snippets.

@flores
Created November 13, 2014 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flores/ff927a4e279da0e26bdf to your computer and use it in GitHub Desktop.
Save flores/ff927a4e279da0e26bdf to your computer and use it in GitHub Desktop.
leapmotion sample output
Frame id: 24410, timestamp: 361046122, hands: 1, fingers: 5, tools: 0, gestures: 0
Right hand, id: 6, palm position: (-112.191, 111.737, 52.8653)
pitch: 15.1425 degrees, roll: -12.2504 degrees, yaw: -1.47126 degrees
Arm direction: (-0.123611, 0.203058, -0.971333) wrist position: (-102.575, 100.338, 105.105) elbow position: (-69.4312, 45.8921, 3
65.547)
Thumb finger, id: 60, length: 51.7551mm, width: 20.1096
Metacarpal bone, start: (-132.391, 94.7399, 107.878), end: (-132.391, 94.7399, 107.878), direction: (0, 0, 0)
Proximal bone, start: (-132.391, 94.7399, 107.878), end: (-165.444, 98.2172, 71.098), direction: (0.666774, -0.0701479, 0.7419
52)
Middle bone, start: (-165.444, 98.2172, 71.098), end: (-188.353, 100.842, 46.3038), direction: (0.676586, -0.0775056, 0.732273
)
Distal bone, start: (-188.353, 100.842, 46.3038), end: (-204.094, 102.655, 29.3007), direction: (0.677269, -0.0780221, 0.73158
7)
Index finger, id: 61, length: 58.3999mm, width: 19.2087
Metacarpal bone, start: (-120.83, 114.347, 101.875), end: (-136.69, 125.023, 31.3611), direction: (0.217084, -0.146134, 0.965153)
Proximal bone, start: (-136.69, 125.023, 31.3611), end: (-134.977, 131.242, -10.813), direction: (-0.0401471, -0.145766, 0.988504)
Middle bone, start: (-134.977, 131.242, -10.813), end: (-134.875, 129.954, -34.781), direction: (-0.00428022, 0.053676, 0.998549)
Distal bone, start: (-134.875, 129.954, -34.781), end: (-135.303, 126.298, -51.3441), direction: (0.0252446, 0.215477, 0.976183)
Middle finger, id: 62, length: 66.5419mm, width: 18.8655
Metacarpal bone, start: (-109.045, 114.327, 98.6149), end: (-114.854, 122.882, 30.1066), direction: (0.0838518, -0.123472, 0.988799)
Proximal bone, start: (-114.854, 122.882, 30.1066), end: (-107.796, 130.352, -16.6433), direction: (-0.147452, -0.15607, 0.976678)
Middle bone, start: (-107.796, 130.352, -16.6433), end: (-105.65, 129.191, -44.777), direction: (-0.0760103, 0.0411225, 0.996259)
Distal bone, start: (-105.65, 129.191, -44.777), end: (-105.401, 125.356, -63.0387), direction: (-0.0133363, 0.205511, 0.978564)
Ring finger, id: 63, length: 63.9819mm, width: 17.9517
Metacarpal bone, start: (-97.4366, 111.277, 96.4257), end: (-93.4618, 117.042, 34.6153), direction: (-0.0638975, -0.0926759, 0.993644)
Proximal bone, start: (-93.4618, 117.042, 34.6153), end: (-87.3121, 120.422, -9.19611), direction: (-0.138601, -0.0761832, 0.987414)
Middle bone, start: (-87.3121, 120.422, -9.19611), end: (-84.9861, 119.258, -36.5829), direction: (-0.0845524, 0.0422965, 0.995521)
Distal bone, start: (-84.9861, 119.258, -36.5829), end: (-84.2502, 116.701, -54.9454), direction: (-0.0396616, 0.137858, 0.989658)
Pinky finger, id: 64, length: 50.1606mm, width: 15.9461
Metacarpal bone, start: (-87.3578, 101.383, 95.8969), end: (-75.37, 107.185, 39.8749), direction: (-0.208182, -0.10076, 0.972886)
Proximal bone, start: (-75.37, 107.185, 39.8749), end: (-59.2666, 103.757, 8.85996), direction: (-0.458602, 0.0976271, 0.883263)
Middle bone, start: (-59.2666, 103.757, 8.85996), end: (-51.7427, 99.8924, -8.62492), direction: (-0.387366, 0.198944, 0.900205)
Distal bone, start: (-51.7427, 99.8924, -8.62492), end: (-46.1602, 95.1401, -24.0928), direction: (-0.326127, 0.27763, 0.903638)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment