HandJointPoseDataUtility.cs 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996
  1. namespace NRKernal
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using UnityEngine;
  6. public class HandJointPoseDataUtility
  7. {
  8. /// <summary>
  9. /// Convert hand joint pose dictionary to json string
  10. /// </summary>
  11. /// <param name="dict"></param>
  12. /// <returns></returns>
  13. public static string DictToJson(Dictionary<HandJointID, Pose> dict)
  14. {
  15. if (dict == null)
  16. {
  17. return null;
  18. }
  19. return JsonUtility.ToJson(new HandJointsArrayData(dict), true);
  20. }
  21. /// <summary>
  22. /// Convert json string to hand joint pose dictionary
  23. /// </summary>
  24. /// <param name="jsonStr"></param>
  25. /// <returns></returns>
  26. public static Dictionary<HandJointID, Pose> JsonToDict(string jsonStr)
  27. {
  28. if (string.IsNullOrEmpty(jsonStr))
  29. {
  30. return null;
  31. }
  32. var jointsArrayData = JsonUtility.FromJson<HandJointsArrayData>(jsonStr);
  33. if (jointsArrayData == null)
  34. {
  35. return null;
  36. }
  37. return jointsArrayData.ToDictionary();
  38. }
  39. /// <summary>
  40. /// Convert json string to the provided hand joint pose dictionary
  41. /// </summary>
  42. /// <param name="jsonStr"></param>
  43. /// <param name="dict"></param>
  44. public static void JsonToDict(string jsonStr, Dictionary<HandJointID, Pose> dict)
  45. {
  46. if (string.IsNullOrEmpty(jsonStr) || dict == null)
  47. return;
  48. var jointsArrayData = JsonUtility.FromJson<HandJointsArrayData>(jsonStr);
  49. if (jointsArrayData == null)
  50. return;
  51. jointsArrayData.WriteDictionary(dict);
  52. }
  53. }
  54. [Serializable]
  55. internal class HandJointsArrayData
  56. {
  57. [Serializable]
  58. internal class SingleHandJointInfo
  59. {
  60. public HandJointID jointID;
  61. public Pose jointPose;
  62. public SingleHandJointInfo(HandJointID jointID, Pose jointPose)
  63. {
  64. this.jointID = jointID;
  65. this.jointPose = jointPose;
  66. }
  67. }
  68. public List<SingleHandJointInfo> jointInfoArray;
  69. public HandJointsArrayData(Dictionary<HandJointID, Pose> dict)
  70. {
  71. jointInfoArray = new List<SingleHandJointInfo>();
  72. foreach (var item in dict)
  73. {
  74. jointInfoArray.Add(new SingleHandJointInfo(item.Key, item.Value));
  75. }
  76. }
  77. public Dictionary<HandJointID, Pose> ToDictionary()
  78. {
  79. if (jointInfoArray == null)
  80. return null;
  81. var dict = new Dictionary<HandJointID, Pose>();
  82. for (int i = 0; i < jointInfoArray.Count; i++)
  83. {
  84. var jointInfo = jointInfoArray[i];
  85. dict.Add(jointInfo.jointID, jointInfo.jointPose);
  86. }
  87. return dict;
  88. }
  89. public void WriteDictionary(Dictionary<HandJointID, Pose> dict)
  90. {
  91. if (dict == null)
  92. return;
  93. dict.Clear();
  94. for (int i = 0; i < jointInfoArray.Count; i++)
  95. {
  96. var jointInfo = jointInfoArray[i];
  97. dict.Add(jointInfo.jointID, jointInfo.jointPose);
  98. }
  99. }
  100. #region HandJointsArrayData_Right_OpenHand JSON
  101. public static string HandJointsArrayData_Right_OpenHand_Json = @"
  102. {
  103. ""jointInfoArray"": [
  104. {
  105. ""jointID"": 3,
  106. ""jointPose"": {
  107. ""position"": {
  108. ""x"": 0.06148910894989967,
  109. ""y"": -0.13473284244537354,
  110. ""z"": 0.4420540928840637
  111. },
  112. ""rotation"": {
  113. ""x"": 0.14972741901874543,
  114. ""y"": 0.5636008977890015,
  115. ""z"": 0.5173071622848511,
  116. ""w"": 0.6263617873191834
  117. }
  118. }
  119. },
  120. {
  121. ""jointID"": 4,
  122. ""jointPose"": {
  123. ""position"": {
  124. ""x"": 0.04224194958806038,
  125. ""y"": -0.12688010931015016,
  126. ""z"": 0.4756573736667633
  127. },
  128. ""rotation"": {
  129. ""x"": 0.16429845988750459,
  130. ""y"": 0.5595179796218872,
  131. ""z"": 0.5333989858627319,
  132. ""w"": 0.6127243638038635
  133. }
  134. }
  135. },
  136. {
  137. ""jointID"": 5,
  138. ""jointPose"": {
  139. ""position"": {
  140. ""x"": 0.026774369180202485,
  141. ""y"": -0.12202697992324829,
  142. ""z"": 0.5036730766296387
  143. },
  144. ""rotation"": {
  145. ""x"": 0.16429845988750459,
  146. ""y"": 0.5595179796218872,
  147. ""z"": 0.5333989858627319,
  148. ""w"": 0.6127243638038635
  149. }
  150. }
  151. },
  152. {
  153. ""jointID"": 6,
  154. ""jointPose"": {
  155. ""position"": {
  156. ""x"": 0.07916108518838883,
  157. ""y"": -0.08386191725730896,
  158. ""z"": 0.4538080096244812
  159. },
  160. ""rotation"": {
  161. ""x"": 0.1964336335659027,
  162. ""y"": 0.15414485335350038,
  163. ""z"": 0.1433151662349701,
  164. ""w"": 0.9576607346534729
  165. }
  166. }
  167. },
  168. {
  169. ""jointID"": 7,
  170. ""jointPose"": {
  171. ""position"": {
  172. ""x"": 0.07197114080190659,
  173. ""y"": -0.0596344955265522,
  174. ""z"": 0.4748261868953705
  175. },
  176. ""rotation"": {
  177. ""x"": 0.21575821936130525,
  178. ""y"": 0.15700286626815797,
  179. ""z"": 0.1402035355567932,
  180. ""w"": 0.9534891247749329
  181. }
  182. }
  183. },
  184. {
  185. ""jointID"": 8,
  186. ""jointPose"": {
  187. ""position"": {
  188. ""x"": 0.06734540313482285,
  189. ""y"": -0.043503861874341968,
  190. ""z"": 0.48995256423950198
  191. },
  192. ""rotation"": {
  193. ""x"": 0.2213037759065628,
  194. ""y"": 0.1578148454427719,
  195. ""z"": 0.13929270207881928,
  196. ""w"": 0.9522166848182678
  197. }
  198. }
  199. },
  200. {
  201. ""jointID"": 9,
  202. ""jointPose"": {
  203. ""position"": {
  204. ""x"": 0.06273843348026276,
  205. ""y"": -0.0272679440677166,
  206. ""z"": 0.5055195689201355
  207. },
  208. ""rotation"": {
  209. ""x"": 0.2213037759065628,
  210. ""y"": 0.1578148454427719,
  211. ""z"": 0.13929270207881928,
  212. ""w"": 0.9522166848182678
  213. }
  214. }
  215. },
  216. {
  217. ""jointID"": 10,
  218. ""jointPose"": {
  219. ""position"": {
  220. ""x"": 0.10289578884840012,
  221. ""y"": -0.07505780458450318,
  222. ""z"": 0.4465775787830353
  223. },
  224. ""rotation"": {
  225. ""x"": 0.2558291256427765,
  226. ""y"": 0.15402789413928986,
  227. ""z"": 0.03402041271328926,
  228. ""w"": 0.9537659883499146
  229. }
  230. }
  231. },
  232. {
  233. ""jointID"": 11,
  234. ""jointPose"": {
  235. ""position"": {
  236. ""x"": 0.10321474820375443,
  237. ""y"": -0.04827165976166725,
  238. ""z"": 0.4738036096096039
  239. },
  240. ""rotation"": {
  241. ""x"": 0.26904958486557009,
  242. ""y"": 0.15448133647441865,
  243. ""z"": 0.03189297392964363,
  244. ""w"": 0.9501213431358337
  245. }
  246. }
  247. },
  248. {
  249. ""jointID"": 12,
  250. ""jointPose"": {
  251. ""position"": {
  252. ""x"": 0.1036520004272461,
  253. ""y"": -0.03046243265271187,
  254. ""z"": 0.49289053678512576
  255. },
  256. ""rotation"": {
  257. ""x"": 0.271046906709671,
  258. ""y"": 0.15454788506031037,
  259. ""z"": 0.03156866505742073,
  260. ""w"": 0.9495535492897034
  261. }
  262. }
  263. },
  264. {
  265. ""jointID"": 13,
  266. ""jointPose"": {
  267. ""position"": {
  268. ""x"": 0.10409640520811081,
  269. ""y"": -0.013714570552110672,
  270. ""z"": 0.5109848976135254
  271. },
  272. ""rotation"": {
  273. ""x"": 0.271046906709671,
  274. ""y"": 0.15454788506031037,
  275. ""z"": 0.03156866505742073,
  276. ""w"": 0.9495535492897034
  277. }
  278. }
  279. },
  280. {
  281. ""jointID"": 14,
  282. ""jointPose"": {
  283. ""position"": {
  284. ""x"": 0.12778820097446443,
  285. ""y"": -0.07651792466640473,
  286. ""z"": 0.4436104893684387
  287. },
  288. ""rotation"": {
  289. ""x"": 0.2305084764957428,
  290. ""y"": 0.13304537534713746,
  291. ""z"": -0.07070420682430268,
  292. ""w"": 0.9613354206085205
  293. }
  294. }
  295. },
  296. {
  297. ""jointID"": 15,
  298. ""jointPose"": {
  299. ""position"": {
  300. ""x"": 0.13412773609161378,
  301. ""y"": -0.05223030969500542,
  302. ""z"": 0.4649518132209778
  303. },
  304. ""rotation"": {
  305. ""x"": 0.2437707483768463,
  306. ""y"": 0.13204912841320039,
  307. ""z"": -0.07250875979661942,
  308. ""w"": 0.9580612182617188
  309. }
  310. }
  311. },
  312. {
  313. ""jointID"": 16,
  314. ""jointPose"": {
  315. ""position"": {
  316. ""x"": 0.13918431103229524,
  317. ""y"": -0.033909816294908527,
  318. ""z"": 0.4819656014442444
  319. },
  320. ""rotation"": {
  321. ""x"": 0.24790433049201966,
  322. ""y"": 0.13173386454582215,
  323. ""z"": -0.07307402789592743,
  324. ""w"": 0.9570003747940064
  325. }
  326. }
  327. },
  328. {
  329. ""jointID"": 17,
  330. ""jointPose"": {
  331. ""position"": {
  332. ""x"": 0.14387288689613343,
  333. ""y"": -0.017216604202985765,
  334. ""z"": 0.4977380037307739
  335. },
  336. ""rotation"": {
  337. ""x"": 0.24790433049201966,
  338. ""y"": 0.13173386454582215,
  339. ""z"": -0.07307402789592743,
  340. ""w"": 0.9570003747940064
  341. }
  342. }
  343. },
  344. {
  345. ""jointID"": 19,
  346. ""jointPose"": {
  347. ""position"": {
  348. ""x"": 0.15144580602645875,
  349. ""y"": -0.08620019257068634,
  350. ""z"": 0.4359111785888672
  351. },
  352. ""rotation"": {
  353. ""x"": 0.34396135807037356,
  354. ""y"": 0.08648207783699036,
  355. ""z"": -0.19372141361236573,
  356. ""w"": 0.9147040247917175
  357. }
  358. }
  359. },
  360. {
  361. ""jointID"": 20,
  362. ""jointPose"": {
  363. ""position"": {
  364. ""x"": 0.16250240802764893,
  365. ""y"": -0.07256454229354859,
  366. ""z"": 0.4565994143486023
  367. },
  368. ""rotation"": {
  369. ""x"": 0.3508676588535309,
  370. ""y"": 0.08501580357551575,
  371. ""z"": -0.19437237083911897,
  372. ""w"": 0.912076473236084
  373. }
  374. }
  375. },
  376. {
  377. ""jointID"": 21,
  378. ""jointPose"": {
  379. ""position"": {
  380. ""x"": 0.17005284130573274,
  381. ""y"": -0.06349429488182068,
  382. ""z"": 0.47086969017982485
  383. },
  384. ""rotation"": {
  385. ""x"": 0.3688325881958008,
  386. ""y"": 0.0811523050069809,
  387. ""z"": -0.19600549340248109,
  388. ""w"": 0.9049633741378784
  389. }
  390. }
  391. },
  392. {
  393. ""jointID"": 22,
  394. ""jointPose"": {
  395. ""position"": {
  396. ""x"": 0.17870698869228364,
  397. ""y"": -0.053819965571165088,
  398. ""z"": 0.4876540005207062
  399. },
  400. ""rotation"": {
  401. ""x"": 0.3688325881958008,
  402. ""y"": 0.0811523050069809,
  403. ""z"": -0.19600549340248109,
  404. ""w"": 0.9049633741378784
  405. }
  406. }
  407. },
  408. {
  409. ""jointID"": 1,
  410. ""jointPose"": {
  411. ""position"": {
  412. ""x"": 0.11448097974061966,
  413. ""y"": -0.10995569825172425,
  414. ""z"": 0.4293799102306366
  415. },
  416. ""rotation"": {
  417. ""x"": 0.06226430833339691,
  418. ""y"": 0.12295009195804596,
  419. ""z"": 0.0756102055311203,
  420. ""w"": 0.9875674843788147
  421. }
  422. }
  423. },
  424. {
  425. ""jointID"": 0,
  426. ""jointPose"": {
  427. ""position"": {
  428. ""x"": 0.12116783112287522,
  429. ""y"": -0.15640263259410859,
  430. ""z"": 0.4100067913532257
  431. },
  432. ""rotation"": {
  433. ""x"": 0.06738892197608948,
  434. ""y"": 0.12076979875564575,
  435. ""z"": 0.11029858142137528,
  436. ""w"": 0.9842293858528137
  437. }
  438. }
  439. },
  440. {
  441. ""jointID"": 2,
  442. ""jointPose"": {
  443. ""position"": {
  444. ""x"": 0.09132847189903259,
  445. ""y"": -0.14556774497032166,
  446. ""z"": 0.4260304570198059
  447. },
  448. ""rotation"": {
  449. ""x"": 0.14972741901874543,
  450. ""y"": 0.5636008977890015,
  451. ""z"": 0.5173071622848511,
  452. ""w"": 0.6263617873191834
  453. }
  454. }
  455. },
  456. {
  457. ""jointID"": 18,
  458. ""jointPose"": {
  459. ""position"": {
  460. ""x"": 0.13371501863002778,
  461. ""y"": -0.13196295499801637,
  462. ""z"": 0.424629271030426
  463. },
  464. ""rotation"": {
  465. ""x"": 0.34396135807037356,
  466. ""y"": 0.08648207783699036,
  467. ""z"": -0.19372141361236573,
  468. ""w"": 0.9147040247917175
  469. }
  470. }
  471. }
  472. ]
  473. }";
  474. #endregion
  475. #region HandJointsArrayData_Right_Grab JSON
  476. public static string HandJointsArrayData_Right_Grab_Json = @"
  477. {
  478. ""jointInfoArray"": [
  479. {
  480. ""jointID"": 3,
  481. ""jointPose"": {
  482. ""position"": {
  483. ""x"": 0.07825211435556412,
  484. ""y"": -0.1435244232416153,
  485. ""z"": 0.4401571452617645
  486. },
  487. ""rotation"": {
  488. ""x"": 0.31863266229629519,
  489. ""y"": 0.778114914894104,
  490. ""z"": 0.23363712430000306,
  491. ""w"": 0.488287091255188
  492. }
  493. }
  494. },
  495. {
  496. ""jointID"": 4,
  497. ""jointPose"": {
  498. ""position"": {
  499. ""x"": 0.08857312053442002,
  500. ""y"": -0.12454214692115784,
  501. ""z"": 0.47323957085609438
  502. },
  503. ""rotation"": {
  504. ""x"": 0.49793991446495058,
  505. ""y"": 0.8038176894187927,
  506. ""z"": -0.22258803248405457,
  507. ""w"": 0.23746076226234437
  508. }
  509. }
  510. },
  511. {
  512. ""jointID"": 5,
  513. ""jointPose"": {
  514. ""position"": {
  515. ""x"": 0.117970310151577,
  516. ""y"": -0.11099642515182495,
  517. ""z"": 0.47327810525894167
  518. },
  519. ""rotation"": {
  520. ""x"": 0.49793991446495058,
  521. ""y"": 0.8038176894187927,
  522. ""z"": -0.22258803248405457,
  523. ""w"": 0.23746076226234437
  524. }
  525. }
  526. },
  527. {
  528. ""jointID"": 6,
  529. ""jointPose"": {
  530. ""position"": {
  531. ""x"": 0.07153456658124924,
  532. ""y"": -0.08633570373058319,
  533. ""z"": 0.43634188175201418
  534. },
  535. ""rotation"": {
  536. ""x"": 0.6982498168945313,
  537. ""y"": 0.2176690250635147,
  538. ""z"": 0.2459092140197754,
  539. ""w"": 0.6360787749290466
  540. }
  541. }
  542. },
  543. {
  544. ""jointID"": 7,
  545. ""jointPose"": {
  546. ""position"": {
  547. ""x"": 0.07086725533008576,
  548. ""y"": -0.09814827144145966,
  549. ""z"": 0.4670086205005646
  550. },
  551. ""rotation"": {
  552. ""x"": 0.9533537030220032,
  553. ""y"": 0.20110885798931123,
  554. ""z"": -0.07114144414663315,
  555. ""w"": -0.21356706321239472
  556. }
  557. }
  558. },
  559. {
  560. ""jointID"": 8,
  561. ""jointPose"": {
  562. ""position"": {
  563. ""x"": 0.07892315834760666,
  564. ""y"": -0.11356399953365326,
  565. ""z"": 0.45259127020835879
  566. },
  567. ""rotation"": {
  568. ""x"": -0.7530031204223633,
  569. ""y"": -0.15873795747756959,
  570. ""z"": 0.14484649896621705,
  571. ""w"": 0.6219390630722046
  572. }
  573. }
  574. },
  575. {
  576. ""jointID"": 9,
  577. ""jointPose"": {
  578. ""position"": {
  579. ""x"": 0.08052397519350052,
  580. ""y"": -0.11141355335712433,
  581. ""z"": 0.42978835105895998
  582. },
  583. ""rotation"": {
  584. ""x"": -0.7530031204223633,
  585. ""y"": -0.15873795747756959,
  586. ""z"": 0.14484649896621705,
  587. ""w"": 0.6219390630722046
  588. }
  589. }
  590. },
  591. {
  592. ""jointID"": 10,
  593. ""jointPose"": {
  594. ""position"": {
  595. ""x"": 0.09223904460668564,
  596. ""y"": -0.07842713594436646,
  597. ""z"": 0.4394833743572235
  598. },
  599. ""rotation"": {
  600. ""x"": 0.7523470520973206,
  601. ""y"": 0.14191751182079316,
  602. ""z"": 0.16160741448402406,
  603. ""w"": 0.6226686835289002
  604. }
  605. }
  606. },
  607. {
  608. ""jointID"": 11,
  609. ""jointPose"": {
  610. ""position"": {
  611. ""x"": 0.09227100759744644,
  612. ""y"": -0.09527556598186493,
  613. ""z"": 0.47376149892807009
  614. },
  615. ""rotation"": {
  616. ""x"": 0.9483144879341126,
  617. ""y"": 0.15463320910930634,
  618. ""z"": -0.04443874955177307,
  619. ""w"": -0.2735205888748169
  620. }
  621. }
  622. },
  623. {
  624. ""jointID"": 12,
  625. ""jointPose"": {
  626. ""position"": {
  627. ""x"": 0.099415123462677,
  628. ""y"": -0.11176653206348419,
  629. ""z"": 0.4548226296901703
  630. },
  631. ""rotation"": {
  632. ""x"": -0.7050753831863403,
  633. ""y"": -0.15082840621471406,
  634. ""z"": 0.0777425542473793,
  635. ""w"": 0.6885315775871277
  636. }
  637. }
  638. },
  639. {
  640. ""jointID"": 13,
  641. ""jointPose"": {
  642. ""position"": {
  643. ""x"": 0.10229745507240296,
  644. ""y"": -0.10535459220409394,
  645. ""z"": 0.43118640780448916
  646. },
  647. ""rotation"": {
  648. ""x"": -0.7050753831863403,
  649. ""y"": -0.15082840621471406,
  650. ""z"": 0.0777425542473793,
  651. ""w"": 0.6885315775871277
  652. }
  653. }
  654. },
  655. {
  656. ""jointID"": 14,
  657. ""jointPose"": {
  658. ""position"": {
  659. ""x"": 0.11261007934808731,
  660. ""y"": -0.07658280432224274,
  661. ""z"": 0.44104257225990298
  662. },
  663. ""rotation"": {
  664. ""x"": 0.7651817202568054,
  665. ""y"": 0.06708147376775742,
  666. ""z"": 0.07878470420837403,
  667. ""w"": 0.6354447603225708
  668. }
  669. }
  670. },
  671. {
  672. ""jointID"": 15,
  673. ""jointPose"": {
  674. ""position"": {
  675. ""x"": 0.11231625080108643,
  676. ""y"": -0.09108947217464447,
  677. ""z"": 0.4706229865550995
  678. },
  679. ""rotation"": {
  680. ""x"": 0.9593813419342041,
  681. ""y"": 0.10491891205310822,
  682. ""z"": -0.009175463579595089,
  683. ""w"": -0.26171618700027468
  684. }
  685. }
  686. },
  687. {
  688. ""jointID"": 16,
  689. ""jointPose"": {
  690. ""position"": {
  691. ""x"": 0.11743796616792679,
  692. ""y"": -0.1083316057920456,
  693. ""z"": 0.45253556966781618
  694. },
  695. ""rotation"": {
  696. ""x"": -0.7185230851173401,
  697. ""y"": -0.09824145585298538,
  698. ""z"": 0.04810895025730133,
  699. ""w"": 0.6868470311164856
  700. }
  701. }
  702. },
  703. {
  704. ""jointID"": 17,
  705. ""jointPose"": {
  706. ""position"": {
  707. ""x"": 0.11946114152669907,
  708. ""y"": -0.10291650891304016,
  709. ""z"": 0.4298199713230133
  710. },
  711. ""rotation"": {
  712. ""x"": -0.7185230851173401,
  713. ""y"": -0.09824145585298538,
  714. ""z"": 0.04810895025730133,
  715. ""w"": 0.6868470311164856
  716. }
  717. }
  718. },
  719. {
  720. ""jointID"": 19,
  721. ""jointPose"": {
  722. ""position"": {
  723. ""x"": 0.1337360143661499,
  724. ""y"": -0.0805874615907669,
  725. ""z"": 0.4389980733394623
  726. },
  727. ""rotation"": {
  728. ""x"": 0.7690113186836243,
  729. ""y"": -0.008214617148041726,
  730. ""z"": -0.019361650571227075,
  731. ""w"": 0.6388891935348511
  732. }
  733. }
  734. },
  735. {
  736. ""jointID"": 20,
  737. ""jointPose"": {
  738. ""position"": {
  739. ""x"": 0.13375379145145417,
  740. ""y"": -0.0925367921590805,
  741. ""z"": 0.4633577764034271
  742. },
  743. ""rotation"": {
  744. ""x"": 0.9923236966133118,
  745. ""y"": 0.053054824471473697,
  746. ""z"": 0.0006708893924951553,
  747. ""w"": -0.11170736700296402
  748. }
  749. }
  750. },
  751. {
  752. ""jointID"": 21,
  753. ""jointPose"": {
  754. ""position"": {
  755. ""x"": 0.13572239875793458,
  756. ""y"": -0.10873953998088837,
  757. ""z"": 0.4546104967594147
  758. },
  759. ""rotation"": {
  760. ""x"": -0.8012481331825256,
  761. ""y"": -0.04871814697980881,
  762. ""z"": 0.024231355637311937,
  763. ""w"": 0.5958530306816101
  764. }
  765. }
  766. },
  767. {
  768. ""jointID"": 22,
  769. ""jointPose"": {
  770. ""position"": {
  771. ""x"": 0.13698601722717286,
  772. ""y"": -0.1091277003288269,
  773. ""z"": 0.43343380093574526
  774. },
  775. ""rotation"": {
  776. ""x"": -0.8012481331825256,
  777. ""y"": -0.04871814697980881,
  778. ""z"": 0.024231355637311937,
  779. ""w"": 0.5958530306816101
  780. }
  781. }
  782. },
  783. {
  784. ""jointID"": 1,
  785. ""jointPose"": {
  786. ""position"": {
  787. ""x"": 0.11448097974061966,
  788. ""y"": -0.10995569825172425,
  789. ""z"": 0.4293799102306366
  790. },
  791. ""rotation"": {
  792. ""x"": 0.0894060730934143,
  793. ""y"": -0.012419119477272034,
  794. ""z"": 0.17406058311462403,
  795. ""w"": 0.9805892705917358
  796. }
  797. }
  798. },
  799. {
  800. ""jointID"": 0,
  801. ""jointPose"": {
  802. ""position"": {
  803. ""x"": 0.13118740916252137,
  804. ""y"": -0.15068663656711579,
  805. ""z"": 0.4003697335720062
  806. },
  807. ""rotation"": {
  808. ""x"": 0.1035044714808464,
  809. ""y"": -0.01286056824028492,
  810. ""z"": 0.21465229988098145,
  811. ""w"": 0.9711055159568787
  812. }
  813. }
  814. },
  815. {
  816. ""jointID"": 2,
  817. ""jointPose"": {
  818. ""position"": {
  819. ""x"": 0.10471976548433304,
  820. ""y"": -0.14710555970668794,
  821. ""z"": 0.42026346921920779
  822. },
  823. ""rotation"": {
  824. ""x"": 0.31863266229629519,
  825. ""y"": 0.778114914894104,
  826. ""z"": 0.23363712430000306,
  827. ""w"": 0.488287091255188
  828. }
  829. }
  830. },
  831. {
  832. ""jointID"": 18,
  833. ""jointPose"": {
  834. ""position"": {
  835. ""x"": 0.13462820649147035,
  836. ""y"": -0.13043458759784699,
  837. ""z"": 0.42210516333580019
  838. },
  839. ""rotation"": {
  840. ""x"": 0.7690113186836243,
  841. ""y"": -0.008214617148041726,
  842. ""z"": -0.019361650571227075,
  843. ""w"": 0.6388891935348511
  844. }
  845. }
  846. }
  847. ]
  848. }";
  849. #endregion
  850. #region HandJointsArrayData_Right_Point JSON
  851. public static string HandJointsArrayData_Right_Point_Json = @"
  852. {
  853. ""jointInfoArray"": [
  854. {
  855. ""jointID"": 3,
  856. ""jointPose"": {
  857. ""position"": {
  858. ""x"": 0.09043197333812714,
  859. ""y"": -0.15106381475925446,
  860. ""z"": 0.44230812788009646
  861. },
  862. ""rotation"": {
  863. ""x"": 0.39255887269973757,
  864. ""y"": 0.6886204481124878,
  865. ""z"": 0.3100232183933258,
  866. ""w"": 0.5249620079994202
  867. }
  868. }
  869. },
  870. {
  871. ""jointID"": 4,
  872. ""jointPose"": {
  873. ""position"": {
  874. ""x"": 0.09841367602348328,
  875. ""y"": -0.14101700484752656,
  876. ""z"": 0.47968000173568728
  877. },
  878. ""rotation"": {
  879. ""x"": 0.5901387333869934,
  880. ""y"": 0.712329626083374,
  881. ""z"": 0.10009798407554627,
  882. ""w"": 0.3664739727973938
  883. }
  884. }
  885. },
  886. {
  887. ""jointID"": 5,
  888. ""jointPose"": {
  889. ""position"": {
  890. ""x"": 0.12294268608093262,
  891. ""y"": -0.13745714724063874,
  892. ""z"": 0.5004968047142029
  893. },
  894. ""rotation"": {
  895. ""x"": 0.5901387333869934,
  896. ""y"": 0.712329626083374,
  897. ""z"": 0.10009798407554627,
  898. ""w"": 0.3664739727973938
  899. }
  900. }
  901. },
  902. {
  903. ""jointID"": 6,
  904. ""jointPose"": {
  905. ""position"": {
  906. ""x"": 0.09068554639816284,
  907. ""y"": -0.09737525880336762,
  908. ""z"": 0.4503321945667267
  909. },
  910. ""rotation"": {
  911. ""x"": 0.19070811569690705,
  912. ""y"": -0.0019001234322786332,
  913. ""z"": 0.1504197120666504,
  914. ""w"": 0.9700519442558289
  915. }
  916. }
  917. },
  918. {
  919. ""jointID"": 7,
  920. ""jointPose"": {
  921. ""position"": {
  922. ""x"": 0.0810346007347107,
  923. ""y"": -0.07257464528083801,
  924. ""z"": 0.4696251153945923
  925. },
  926. ""rotation"": {
  927. ""x"": 0.20021948218345643,
  928. ""y"": -0.00040636397898197174,
  929. ""z"": 0.15034696459770204,
  930. ""w"": 0.9681466221809387
  931. }
  932. }
  933. },
  934. {
  935. ""jointID"": 8,
  936. ""jointPose"": {
  937. ""position"": {
  938. ""x"": 0.07442089170217514,
  939. ""y"": -0.05579960718750954,
  940. ""z"": 0.48323607444763186
  941. },
  942. ""rotation"": {
  943. ""x"": 0.20326392352581025,
  944. ""y"": 0.00006636790931224823,
  945. ""z"": 0.15034843981266023,
  946. ""w"": 0.9675118327140808
  947. }
  948. }
  949. },
  950. {
  951. ""jointID"": 9,
  952. ""jointPose"": {
  953. ""position"": {
  954. ""x"": 0.06770510226488114,
  955. ""y"": -0.038841333240270618,
  956. ""z"": 0.4971814751625061
  957. },
  958. ""rotation"": {
  959. ""x"": 0.20326392352581025,
  960. ""y"": 0.00006636790931224823,
  961. ""z"": 0.15034843981266023,
  962. ""w"": 0.9675118327140808
  963. }
  964. }
  965. },
  966. {
  967. ""jointID"": 10,
  968. ""jointPose"": {
  969. ""position"": {
  970. ""x"": 0.11511512845754624,
  971. ""y"": -0.08786951005458832,
  972. ""z"": 0.45100605487823489
  973. },
  974. ""rotation"": {
  975. ""x"": 0.6371235847473145,
  976. ""y"": 0.07007554173469544,
  977. ""z"": 0.14935530722141267,
  978. ""w"": 0.7528983950614929
  979. }
  980. }
  981. },
  982. {
  983. ""jointID"": 11,
  984. ""jointPose"": {
  985. ""position"": {
  986. ""x"": 0.10923435539007187,
  987. ""y"": -0.09254084527492523,
  988. ""z"": 0.4884553551673889
  989. },
  990. ""rotation"": {
  991. ""x"": 0.9154642224311829,
  992. ""y"": 0.16501176357269288,
  993. ""z"": -0.018812112510204316,
  994. ""w"": -0.3665277361869812
  995. }
  996. }
  997. },
  998. {
  999. ""jointID"": 12,
  1000. ""jointPose"": {
  1001. ""position"": {
  1002. ""x"": 0.11698667705059052,
  1003. ""y"": -0.10492801666259766,
  1004. ""z"": 0.46681898832321169
  1005. },
  1006. ""rotation"": {
  1007. ""x"": -0.8504317402839661,
  1008. ""y"": -0.16030393540859223,
  1009. ""z"": 0.04328233003616333,
  1010. ""w"": 0.49919450283050539
  1011. }
  1012. }
  1013. },
  1014. {
  1015. ""jointID"": 13,
  1016. ""jointPose"": {
  1017. ""position"": {
  1018. ""x"": 0.12298658490180969,
  1019. ""y"": -0.11000068485736847,
  1020. ""z"": 0.4434446096420288
  1021. },
  1022. ""rotation"": {
  1023. ""x"": -0.8504317402839661,
  1024. ""y"": -0.16030393540859223,
  1025. ""z"": 0.04328233003616333,
  1026. ""w"": 0.49919450283050539
  1027. }
  1028. }
  1029. },
  1030. {
  1031. ""jointID"": 14,
  1032. ""jointPose"": {
  1033. ""position"": {
  1034. ""x"": 0.1397729516029358,
  1035. ""y"": -0.08997350931167603,
  1036. ""z"": 0.4546767473220825
  1037. },
  1038. ""rotation"": {
  1039. ""x"": 0.6992495656013489,
  1040. ""y"": -0.0171646885573864,
  1041. ""z"": 0.06396500766277313,
  1042. ""w"": 0.7118032574653626
  1043. }
  1044. }
  1045. },
  1046. {
  1047. ""jointID"": 15,
  1048. ""jointPose"": {
  1049. ""position"": {
  1050. ""x"": 0.13533827662467957,
  1051. ""y"": -0.09823991358280182,
  1052. ""z"": 0.48626047372817995
  1053. },
  1054. ""rotation"": {
  1055. ""x"": 0.9598661661148071,
  1056. ""y"": 0.04940487816929817,
  1057. ""z"": 0.046163685619831088,
  1058. ""w"": -0.27218565344810488
  1059. }
  1060. }
  1061. },
  1062. {
  1063. ""jointID"": 16,
  1064. ""jointPose"": {
  1065. ""position"": {
  1066. ""x"": 0.13850779831409455,
  1067. ""y"": -0.11555792391300202,
  1068. ""z"": 0.46780186891555788
  1069. },
  1070. ""rotation"": {
  1071. ""x"": -0.9098184704780579,
  1072. ""y"": -0.05558675900101662,
  1073. ""z"": -0.038438580930233,
  1074. ""w"": 0.4094666838645935
  1075. }
  1076. }
  1077. },
  1078. {
  1079. ""jointID"": 17,
  1080. ""jointPose"": {
  1081. ""position"": {
  1082. ""x"": 0.14185111224651338,
  1083. ""y"": -0.1258217692375183,
  1084. ""z"": 0.44699591398239138
  1085. },
  1086. ""rotation"": {
  1087. ""x"": -0.9098184704780579,
  1088. ""y"": -0.05558675900101662,
  1089. ""z"": -0.038438580930233,
  1090. ""w"": 0.4094666838645935
  1091. }
  1092. }
  1093. },
  1094. {
  1095. ""jointID"": 19,
  1096. ""jointPose"": {
  1097. ""position"": {
  1098. ""x"": 0.1618957817554474,
  1099. ""y"": -0.09706361591815949,
  1100. ""z"": 0.4505121111869812
  1101. },
  1102. ""rotation"": {
  1103. ""x"": 0.6981943249702454,
  1104. ""y"": -0.06974326819181442,
  1105. ""z"": -0.05978873372077942,
  1106. ""w"": 0.7099900841712952
  1107. }
  1108. }
  1109. },
  1110. {
  1111. ""jointID"": 20,
  1112. ""jointPose"": {
  1113. ""position"": {
  1114. ""x"": 0.1610235869884491,
  1115. ""y"": -0.10384775698184967,
  1116. ""z"": 0.47676849365234377
  1117. },
  1118. ""rotation"": {
  1119. ""x"": 0.9607752561569214,
  1120. ""y"": -0.08460687845945358,
  1121. ""z"": 0.032079290598630908,
  1122. ""w"": -0.2621513903141022
  1123. }
  1124. }
  1125. },
  1126. {
  1127. ""jointID"": 21,
  1128. ""jointPose"": {
  1129. ""position"": {
  1130. ""x"": 0.15840137004852296,
  1131. ""y"": -0.11642716825008393,
  1132. ""z"": 0.4634343087673187
  1133. },
  1134. ""rotation"": {
  1135. ""x"": -0.879914402961731,
  1136. ""y"": 0.0755491554737091,
  1137. ""z"": -0.04983111470937729,
  1138. ""w"": 0.46643301844596865
  1139. }
  1140. }
  1141. },
  1142. {
  1143. ""jointID"": 22,
  1144. ""jointPose"": {
  1145. ""position"": {
  1146. ""x"": 0.1568325161933899,
  1147. ""y"": -0.1230180561542511,
  1148. ""z"": 0.44332706928253176
  1149. },
  1150. ""rotation"": {
  1151. ""x"": -0.879914402961731,
  1152. ""y"": 0.0755491554737091,
  1153. ""z"": -0.04983111470937729,
  1154. ""w"": 0.46643301844596865
  1155. }
  1156. }
  1157. },
  1158. {
  1159. ""jointID"": 1,
  1160. ""jointPose"": {
  1161. ""position"": {
  1162. ""x"": 0.13248354196548463,
  1163. ""y"": -0.11908532679080963,
  1164. ""z"": 0.43122756481170657
  1165. },
  1166. ""rotation"": {
  1167. ""x"": 0.1755380630493164,
  1168. ""y"": -0.0001525338739156723,
  1169. ""z"": 0.11750473082065582,
  1170. ""w"": 0.9774349331855774
  1171. }
  1172. }
  1173. },
  1174. {
  1175. ""jointID"": 0,
  1176. ""jointPose"": {
  1177. ""position"": {
  1178. ""x"": 0.1440785825252533,
  1179. ""y"": -0.15913042426109315,
  1180. ""z"": 0.4024151563644409
  1181. },
  1182. ""rotation"": {
  1183. ""x"": 0.16229642927646638,
  1184. ""y"": -0.010410726070404053,
  1185. ""z"": 0.16224487125873567,
  1186. ""w"": 0.9732564687728882
  1187. }
  1188. }
  1189. },
  1190. {
  1191. ""jointID"": 2,
  1192. ""jointPose"": {
  1193. ""position"": {
  1194. ""x"": 0.11725527048110962,
  1195. ""y"": -0.1550970822572708,
  1196. ""z"": 0.4223616421222687
  1197. },
  1198. ""rotation"": {
  1199. ""x"": 0.39255887269973757,
  1200. ""y"": 0.6886204481124878,
  1201. ""z"": 0.3100232183933258,
  1202. ""w"": 0.5249620079994202
  1203. }
  1204. }
  1205. },
  1206. {
  1207. ""jointID"": 18,
  1208. ""jointPose"": {
  1209. ""position"": {
  1210. ""x"": 0.1522304117679596,
  1211. ""y"": -0.13934452831745149,
  1212. ""z"": 0.42598310112953188
  1213. },
  1214. ""rotation"": {
  1215. ""x"": 0.6981943249702454,
  1216. ""y"": -0.06974326819181442,
  1217. ""z"": -0.05978873372077942,
  1218. ""w"": 0.7099900841712952
  1219. }
  1220. }
  1221. }
  1222. ]
  1223. }";
  1224. #endregion
  1225. #region HandJointsArrayData_Right_Victory JSON
  1226. public static string HandJointsArrayData_Right_Victory_Json = @"
  1227. {
  1228. ""jointInfoArray"": [
  1229. {
  1230. ""jointID"": 3,
  1231. ""jointPose"": {
  1232. ""position"": {
  1233. ""x"": 0.07949543744325638,
  1234. ""y"": -0.14329421520233155,
  1235. ""z"": 0.44704487919807436
  1236. },
  1237. ""rotation"": {
  1238. ""x"": 0.4506657123565674,
  1239. ""y"": 0.6781644821166992,
  1240. ""z"": 0.2314215451478958,
  1241. ""w"": 0.5323885679244995
  1242. }
  1243. }
  1244. },
  1245. {
  1246. ""jointID"": 4,
  1247. ""jointPose"": {
  1248. ""position"": {
  1249. ""x"": 0.09336594492197037,
  1250. ""y"": -0.13332216441631318,
  1251. ""z"": 0.4826745092868805
  1252. },
  1253. ""rotation"": {
  1254. ""x"": 0.6186810731887817,
  1255. ""y"": 0.6813832521438599,
  1256. ""z"": 0.059811435639858249,
  1257. ""w"": 0.3864884078502655
  1258. }
  1259. }
  1260. },
  1261. {
  1262. ""jointID"": 5,
  1263. ""jointPose"": {
  1264. ""position"": {
  1265. ""x"": 0.11881614476442337,
  1266. ""y"": -0.1313823163509369,
  1267. ""z"": 0.502579391002655
  1268. },
  1269. ""rotation"": {
  1270. ""x"": 0.6186810731887817,
  1271. ""y"": 0.6813832521438599,
  1272. ""z"": 0.059811435639858249,
  1273. ""w"": 0.3864884078502655
  1274. }
  1275. }
  1276. },
  1277. {
  1278. ""jointID"": 6,
  1279. ""jointPose"": {
  1280. ""position"": {
  1281. ""x"": 0.08286626636981964,
  1282. ""y"": -0.09706637263298035,
  1283. ""z"": 0.4607667922973633
  1284. },
  1285. ""rotation"": {
  1286. ""x"": 0.2547614276409149,
  1287. ""y"": -0.04607053101062775,
  1288. ""z"": 0.13524316251277924,
  1289. ""w"": 0.9563908576965332
  1290. }
  1291. }
  1292. },
  1293. {
  1294. ""jointID"": 7,
  1295. ""jointPose"": {
  1296. ""position"": {
  1297. ""x"": 0.07343778014183045,
  1298. ""y"": -0.0747295469045639,
  1299. ""z"": 0.4829613268375397
  1300. },
  1301. ""rotation"": {
  1302. ""x"": 0.25915977358818056,
  1303. ""y"": -0.0454711839556694,
  1304. ""z"": 0.13554279506206513,
  1305. ""w"": 0.9551945924758911
  1306. }
  1307. }
  1308. },
  1309. {
  1310. ""jointID"": 8,
  1311. ""jointPose"": {
  1312. ""position"": {
  1313. ""x"": 0.06694518774747849,
  1314. ""y"": -0.05952678993344307,
  1315. ""z"": 0.49836012721061709
  1316. },
  1317. ""rotation"": {
  1318. ""x"": 0.26558566093444826,
  1319. ""y"": -0.044562119990587237,
  1320. ""z"": 0.13586291670799256,
  1321. ""w"": 0.9534252882003784
  1322. }
  1323. }
  1324. },
  1325. {
  1326. ""jointID"": 9,
  1327. ""jointPose"": {
  1328. ""position"": {
  1329. ""x"": 0.06033487617969513,
  1330. ""y"": -0.044300343841314319,
  1331. ""z"": 0.5142226815223694
  1332. },
  1333. ""rotation"": {
  1334. ""x"": 0.26558566093444826,
  1335. ""y"": -0.044562119990587237,
  1336. ""z"": 0.13586291670799256,
  1337. ""w"": 0.9534252882003784
  1338. }
  1339. }
  1340. },
  1341. {
  1342. ""jointID"": 10,
  1343. ""jointPose"": {
  1344. ""position"": {
  1345. ""x"": 0.113646499812603,
  1346. ""y"": -0.08805495500564575,
  1347. ""z"": 0.4619302451610565
  1348. },
  1349. ""rotation"": {
  1350. ""x"": 0.2165980339050293,
  1351. ""y"": -0.014383846893906594,
  1352. ""z"": -0.03160957992076874,
  1353. ""w"": 0.9756430387496948
  1354. }
  1355. }
  1356. },
  1357. {
  1358. ""jointID"": 11,
  1359. ""jointPose"": {
  1360. ""position"": {
  1361. ""x"": 0.11564119905233383,
  1362. ""y"": -0.059131231158971789,
  1363. ""z"": 0.4867957532405853
  1364. },
  1365. ""rotation"": {
  1366. ""x"": 0.21910570561885835,
  1367. ""y"": -0.014469223096966744,
  1368. ""z"": -0.031553998589515689,
  1369. ""w"": 0.9750834107398987
  1370. }
  1371. }
  1372. },
  1373. {
  1374. ""jointID"": 12,
  1375. ""jointPose"": {
  1376. ""position"": {
  1377. ""x"": 0.11699516326189041,
  1378. ""y"": -0.03944708779454231,
  1379. ""z"": 0.5038946866989136
  1380. },
  1381. ""rotation"": {
  1382. ""x"": 0.22640086710453034,
  1383. ""y"": -0.014729056507349015,
  1384. ""z"": -0.03134191781282425,
  1385. ""w"": 0.9734184741973877
  1386. }
  1387. }
  1388. },
  1389. {
  1390. ""jointID"": 13,
  1391. ""jointPose"": {
  1392. ""position"": {
  1393. ""x"": 0.11824501305818558,
  1394. ""y"": -0.021098073571920396,
  1395. ""z"": 0.5203215479850769
  1396. },
  1397. ""rotation"": {
  1398. ""x"": 0.22640086710453034,
  1399. ""y"": -0.014729056507349015,
  1400. ""z"": -0.03134191781282425,
  1401. ""w"": 0.9734184741973877
  1402. }
  1403. }
  1404. },
  1405. {
  1406. ""jointID"": 14,
  1407. ""jointPose"": {
  1408. ""position"": {
  1409. ""x"": 0.1381572037935257,
  1410. ""y"": -0.09607167541980744,
  1411. ""z"": 0.4662872552871704
  1412. },
  1413. ""rotation"": {
  1414. ""x"": 0.5594868659973145,
  1415. ""y"": -0.005924789234995842,
  1416. ""z"": -0.06282014399766922,
  1417. ""w"": 0.8264340162277222
  1418. }
  1419. }
  1420. },
  1421. {
  1422. ""jointID"": 15,
  1423. ""jointPose"": {
  1424. ""position"": {
  1425. ""x"": 0.14078980684280396,
  1426. ""y"": -0.0926428735256195,
  1427. ""z"": 0.49894979596138
  1428. },
  1429. ""rotation"": {
  1430. ""x"": 0.9677489995956421,
  1431. ""y"": -0.06016496941447258,
  1432. ""z"": -0.01562416646629572,
  1433. ""w"": -0.24412690103054048
  1434. }
  1435. }
  1436. },
  1437. {
  1438. ""jointID"": 16,
  1439. ""jointPose"": {
  1440. ""position"": {
  1441. ""x"": 0.13773787021636964,
  1442. ""y"": -0.1108655035495758,
  1443. ""z"": 0.481362909078598
  1444. },
  1445. ""rotation"": {
  1446. ""x"": 0.9670067429542542,
  1447. ""y"": -0.06020069122314453,
  1448. ""z"": -0.015439197421073914,
  1449. ""w"": -0.24705377221107484
  1450. }
  1451. }
  1452. },
  1453. {
  1454. ""jointID"": 17,
  1455. ""jointPose"": {
  1456. ""position"": {
  1457. ""x"": 0.13493701815605164,
  1458. ""y"": -0.12751173973083497,
  1459. ""z"": 0.4651002883911133
  1460. },
  1461. ""rotation"": {
  1462. ""x"": 0.9670067429542542,
  1463. ""y"": -0.06020069122314453,
  1464. ""z"": -0.015439197421073914,
  1465. ""w"": -0.24705377221107484
  1466. }
  1467. }
  1468. },
  1469. {
  1470. ""jointID"": 19,
  1471. ""jointPose"": {
  1472. ""position"": {
  1473. ""x"": 0.15709511935710908,
  1474. ""y"": -0.10919860005378723,
  1475. ""z"": 0.4639938175678253
  1476. },
  1477. ""rotation"": {
  1478. ""x"": 0.6702162623405457,
  1479. ""y"": -0.13975182175636292,
  1480. ""z"": -0.053956661373376849,
  1481. ""w"": 0.7268895506858826
  1482. }
  1483. }
  1484. },
  1485. {
  1486. ""jointID"": 20,
  1487. ""jointPose"": {
  1488. ""position"": {
  1489. ""x"": 0.15358920395374299,
  1490. ""y"": -0.11383795738220215,
  1491. ""z"": 0.49049606919288638
  1492. },
  1493. ""rotation"": {
  1494. ""x"": 0.985552191734314,
  1495. ""y"": -0.12727229297161103,
  1496. ""z"": 0.07706347107887268,
  1497. ""w"": -0.08093233406543732
  1498. }
  1499. }
  1500. },
  1501. {
  1502. ""jointID"": 21,
  1503. ""jointPose"": {
  1504. ""position"": {
  1505. ""x"": 0.1491333246231079,
  1506. ""y"": -0.1299293339252472,
  1507. ""z"": 0.48248788714408877
  1508. },
  1509. ""rotation"": {
  1510. ""x"": 0.96980881690979,
  1511. ""y"": -0.11760261654853821,
  1512. ""z"": 0.0911291241645813,
  1513. ""w"": -0.1932254582643509
  1514. }
  1515. }
  1516. },
  1517. {
  1518. ""jointID"": 22,
  1519. ""jointPose"": {
  1520. ""position"": {
  1521. ""x"": 0.14509837329387666,
  1522. ""y"": -0.14598463475704194,
  1523. ""z"": 0.46921584010124209
  1524. },
  1525. ""rotation"": {
  1526. ""x"": 0.96980881690979,
  1527. ""y"": -0.11760261654853821,
  1528. ""z"": 0.0911291241645813,
  1529. ""w"": -0.1932254582643509
  1530. }
  1531. }
  1532. },
  1533. {
  1534. ""jointID"": 1,
  1535. ""jointPose"": {
  1536. ""position"": {
  1537. ""x"": 0.12573547661304475,
  1538. ""y"": -0.11983968317508698,
  1539. ""z"": 0.4391145408153534
  1540. },
  1541. ""rotation"": {
  1542. ""x"": 0.23514918982982636,
  1543. ""y"": -0.027042467147111894,
  1544. ""z"": 0.039039600640535358,
  1545. ""w"": 0.9707984328269959
  1546. }
  1547. }
  1548. },
  1549. {
  1550. ""jointID"": 0,
  1551. ""jointPose"": {
  1552. ""position"": {
  1553. ""x"": 0.13079681992530824,
  1554. ""y"": -0.156742125749588,
  1555. ""z"": 0.4045586884021759
  1556. },
  1557. ""rotation"": {
  1558. ""x"": 0.21116545796394349,
  1559. ""y"": -0.040232524275779727,
  1560. ""z"": 0.08456143736839295,
  1561. ""w"": 0.9729542136192322
  1562. }
  1563. }
  1564. },
  1565. {
  1566. ""jointID"": 2,
  1567. ""jointPose"": {
  1568. ""position"": {
  1569. ""x"": 0.1051461324095726,
  1570. ""y"": -0.15001815557479859,
  1571. ""z"": 0.4258017838001251
  1572. },
  1573. ""rotation"": {
  1574. ""x"": 0.4506657123565674,
  1575. ""y"": 0.6781644821166992,
  1576. ""z"": 0.2314215451478958,
  1577. ""w"": 0.5323885679244995
  1578. }
  1579. }
  1580. },
  1581. {
  1582. ""jointID"": 18,
  1583. ""jointPose"": {
  1584. ""position"": {
  1585. ""x"": 0.14106284081935883,
  1586. ""y"": -0.1394759714603424,
  1587. ""z"": 0.4324820041656494
  1588. },
  1589. ""rotation"": {
  1590. ""x"": 0.6702162623405457,
  1591. ""y"": -0.13975182175636292,
  1592. ""z"": -0.053956661373376849,
  1593. ""w"": 0.7268895506858826
  1594. }
  1595. }
  1596. }
  1597. ]
  1598. }";
  1599. #endregion
  1600. #region HandJointsArrayData_Right_SystemGesture JSON
  1601. public static string HandJointsArrayData_Right_SystemGesture_Json = @"
  1602. {
  1603. ""jointInfoArray"": [
  1604. {
  1605. ""jointID"": 3,
  1606. ""jointPose"": {
  1607. ""position"": {
  1608. ""x"": 0.07859566807746887,
  1609. ""y"": -0.07637608796358109,
  1610. ""z"": 0.35437437891960146
  1611. },
  1612. ""rotation"": {
  1613. ""x"": 0.41564926505088808,
  1614. ""y"": -0.10011352598667145,
  1615. ""z"": 0.7065470814704895,
  1616. ""w"": 0.5639185905456543
  1617. }
  1618. }
  1619. },
  1620. {
  1621. ""jointID"": 4,
  1622. ""jointPose"": {
  1623. ""position"": {
  1624. ""x"": 0.04374423623085022,
  1625. ""y"": -0.09291443228721619,
  1626. ""z"": 0.3629278838634491
  1627. },
  1628. ""rotation"": {
  1629. ""x"": 0.39178261160850527,
  1630. ""y"": -0.1750965118408203,
  1631. ""z"": 0.8011733889579773,
  1632. ""w"": 0.41709575057029726
  1633. }
  1634. }
  1635. },
  1636. {
  1637. ""jointID"": 5,
  1638. ""jointPose"": {
  1639. ""position"": {
  1640. ""x"": 0.01768622361123562,
  1641. ""y"": -0.11171846836805344,
  1642. ""z"": 0.3590458631515503
  1643. },
  1644. ""rotation"": {
  1645. ""x"": 0.39178261160850527,
  1646. ""y"": -0.1750965118408203,
  1647. ""z"": 0.8011733889579773,
  1648. ""w"": 0.41709575057029726
  1649. }
  1650. }
  1651. },
  1652. {
  1653. ""jointID"": 6,
  1654. ""jointPose"": {
  1655. ""position"": {
  1656. ""x"": 0.052523620426654819,
  1657. ""y"": -0.07285230606794357,
  1658. ""z"": 0.4065961241722107
  1659. },
  1660. ""rotation"": {
  1661. ""x"": -0.6091181039810181,
  1662. ""y"": 0.7772908806800842,
  1663. ""z"": 0.014828871935606003,
  1664. ""w"": -0.15676133334636689
  1665. }
  1666. }
  1667. },
  1668. {
  1669. ""jointID"": 7,
  1670. ""jointPose"": {
  1671. ""position"": {
  1672. ""x"": 0.02148890681564808,
  1673. ""y"": -0.06656459718942642,
  1674. ""z"": 0.4154130816459656
  1675. },
  1676. ""rotation"": {
  1677. ""x"": -0.6131100654602051,
  1678. ""y"": 0.7773787379264832,
  1679. ""z"": -0.005831271409988403,
  1680. ""w"": -0.14051450788974763
  1681. }
  1682. }
  1683. },
  1684. {
  1685. ""jointID"": 8,
  1686. ""jointPose"": {
  1687. ""position"": {
  1688. ""x"": -0.00011776573956012726,
  1689. ""y"": -0.062139153480529788,
  1690. ""z"": 0.42030882835388186
  1691. },
  1692. ""rotation"": {
  1693. ""x"": -0.6160998940467835,
  1694. ""y"": 0.777062177658081,
  1695. ""z"": -0.0233057402074337,
  1696. ""w"": -0.12669725716114045
  1697. }
  1698. }
  1699. },
  1700. {
  1701. ""jointID"": 9,
  1702. ""jointPose"": {
  1703. ""position"": {
  1704. ""x"": -0.022264476865530015,
  1705. ""y"": -0.05755966156721115,
  1706. ""z"": 0.424272745847702
  1707. },
  1708. ""rotation"": {
  1709. ""x"": -0.6160998940467835,
  1710. ""y"": 0.777062177658081,
  1711. ""z"": -0.0233057402074337,
  1712. ""w"": -0.12669725716114045
  1713. }
  1714. }
  1715. },
  1716. {
  1717. ""jointID"": 10,
  1718. ""jointPose"": {
  1719. ""position"": {
  1720. ""x"": 0.0455845445394516,
  1721. ""y"": -0.09791845828294754,
  1722. ""z"": 0.4034768044948578
  1723. },
  1724. ""rotation"": {
  1725. ""x"": -0.6119090914726257,
  1726. ""y"": 0.770213782787323,
  1727. ""z"": 0.07635395228862763,
  1728. ""w"": -0.16281306743621827
  1729. }
  1730. }
  1731. },
  1732. {
  1733. ""jointID"": 11,
  1734. ""jointPose"": {
  1735. ""position"": {
  1736. ""x"": 0.01043115183711052,
  1737. ""y"": -0.09233025461435318,
  1738. ""z"": 0.41732844710350039
  1739. },
  1740. ""rotation"": {
  1741. ""x"": -0.6168791651725769,
  1742. ""y"": 0.7722557187080383,
  1743. ""z"": 0.051432568579912189,
  1744. ""w"": -0.14295436441898347
  1745. }
  1746. }
  1747. },
  1748. {
  1749. ""jointID"": 12,
  1750. ""jointPose"": {
  1751. ""position"": {
  1752. ""x"": -0.014117468148469925,
  1753. ""y"": -0.08822927623987198,
  1754. ""z"": 0.42521631717681887
  1755. },
  1756. ""rotation"": {
  1757. ""x"": -0.6189391016960144,
  1758. ""y"": 0.7729582190513611,
  1759. ""z"": 0.03980829566717148,
  1760. ""w"": -0.1336611956357956
  1761. }
  1762. }
  1763. },
  1764. {
  1765. ""jointID"": 13,
  1766. ""jointPose"": {
  1767. ""position"": {
  1768. ""x"": -0.03749817609786987,
  1769. ""y"": -0.08423572778701782,
  1770. ""z"": 0.4319607615470886
  1771. },
  1772. ""rotation"": {
  1773. ""x"": -0.6189391016960144,
  1774. ""y"": 0.7729582190513611,
  1775. ""z"": 0.03980829566717148,
  1776. ""w"": -0.1336611956357956
  1777. }
  1778. }
  1779. },
  1780. {
  1781. ""jointID"": 14,
  1782. ""jointPose"": {
  1783. ""position"": {
  1784. ""x"": 0.046618781983852389,
  1785. ""y"": -0.11979266256093979,
  1786. ""z"": 0.3993228077888489
  1787. },
  1788. ""rotation"": {
  1789. ""x"": -0.6805456280708313,
  1790. ""y"": 0.71397465467453,
  1791. ""z"": 0.09036602079868317,
  1792. ""w"": -0.13759364187717439
  1793. }
  1794. }
  1795. },
  1796. {
  1797. ""jointID"": 15,
  1798. ""jointPose"": {
  1799. ""position"": {
  1800. ""x"": 0.015341972932219506,
  1801. ""y"": -0.12074612826108933,
  1802. ""z"": 0.4096370041370392
  1803. },
  1804. ""rotation"": {
  1805. ""x"": -0.6814793348312378,
  1806. ""y"": 0.7145804762840271,
  1807. ""z"": 0.08543788641691208,
  1808. ""w"": -0.13289479911327363
  1809. }
  1810. }
  1811. },
  1812. {
  1813. ""jointID"": 16,
  1814. ""jointPose"": {
  1815. ""position"": {
  1816. ""x"": -0.008980682119727135,
  1817. ""y"": -0.1214146539568901,
  1818. ""z"": 0.41729459166526797
  1819. },
  1820. ""rotation"": {
  1821. ""x"": -0.682937502861023,
  1822. ""y"": 0.7155249714851379,
  1823. ""z"": 0.07726550847291947,
  1824. ""w"": -0.1251019537448883
  1825. }
  1826. }
  1827. },
  1828. {
  1829. ""jointID"": 17,
  1830. ""jointPose"": {
  1831. ""position"": {
  1832. ""x"": -0.031485117971897128,
  1833. ""y"": -0.1219215914607048,
  1834. ""z"": 0.4238296449184418
  1835. },
  1836. ""rotation"": {
  1837. ""x"": -0.682937502861023,
  1838. ""y"": 0.7155249714851379,
  1839. ""z"": 0.07726550847291947,
  1840. ""w"": -0.1251019537448883
  1841. }
  1842. }
  1843. },
  1844. {
  1845. ""jointID"": 19,
  1846. ""jointPose"": {
  1847. ""position"": {
  1848. ""x"": 0.053696244955062869,
  1849. ""y"": -0.1374702900648117,
  1850. ""z"": 0.3920983374118805
  1851. },
  1852. ""rotation"": {
  1853. ""x"": 0.757267415523529,
  1854. ""y"": -0.6144872307777405,
  1855. ""z"": -0.15459957718849183,
  1856. ""w"": 0.15827326476573945
  1857. }
  1858. }
  1859. },
  1860. {
  1861. ""jointID"": 20,
  1862. ""jointPose"": {
  1863. ""position"": {
  1864. ""x"": 0.029694629833102227,
  1865. ""y"": -0.14567133784294129,
  1866. ""z"": 0.4017341136932373
  1867. },
  1868. ""rotation"": {
  1869. ""x"": 0.7668261528015137,
  1870. ""y"": -0.6240769624710083,
  1871. ""z"": -0.10940348356962204,
  1872. ""w"": 0.10264763236045838
  1873. }
  1874. }
  1875. },
  1876. {
  1877. ""jointID"": 21,
  1878. ""jointPose"": {
  1879. ""position"": {
  1880. ""x"": 0.012351961806416512,
  1881. ""y"": -0.15068760514259339,
  1882. ""z"": 0.40585580468177798
  1883. },
  1884. ""rotation"": {
  1885. ""x"": 0.7693901062011719,
  1886. ""y"": -0.6269787549972534,
  1887. ""z"": -0.09164667874574661,
  1888. ""w"": 0.0808541476726532
  1889. }
  1890. }
  1891. },
  1892. {
  1893. ""jointID"": 22,
  1894. ""jointPose"": {
  1895. ""position"": {
  1896. ""x"": -0.007835369557142258,
  1897. ""y"": -0.15613903105258943,
  1898. ""z"": 0.40945494174957278
  1899. },
  1900. ""rotation"": {
  1901. ""x"": 0.7693901062011719,
  1902. ""y"": -0.6269787549972534,
  1903. ""z"": -0.09164667874574661,
  1904. ""w"": 0.0808541476726532
  1905. }
  1906. }
  1907. },
  1908. {
  1909. ""jointID"": 1,
  1910. ""jointPose"": {
  1911. ""position"": {
  1912. ""x"": 0.07929220050573349,
  1913. ""y"": -0.10752697288990021,
  1914. ""z"": 0.3830473721027374
  1915. },
  1916. ""rotation"": {
  1917. ""x"": -0.6053962707519531,
  1918. ""y"": 0.7702578902244568,
  1919. ""z"": 0.09497735649347305,
  1920. ""w"": -0.1765713393688202
  1921. }
  1922. }
  1923. },
  1924. {
  1925. ""jointID"": 0,
  1926. ""jointPose"": {
  1927. ""position"": {
  1928. ""x"": 0.12467923015356064,
  1929. ""y"": -0.11541425436735153,
  1930. ""z"": 0.36173874139785769
  1931. },
  1932. ""rotation"": {
  1933. ""x"": -0.5812849998474121,
  1934. ""y"": 0.7834652066230774,
  1935. ""z"": 0.10748225450515747,
  1936. ""w"": -0.1916707456111908
  1937. }
  1938. }
  1939. },
  1940. {
  1941. ""jointID"": 2,
  1942. ""jointPose"": {
  1943. ""position"": {
  1944. ""x"": 0.10163744539022446,
  1945. ""y"": -0.0958951786160469,
  1946. ""z"": 0.35805654525756838
  1947. },
  1948. ""rotation"": {
  1949. ""x"": 0.41564926505088808,
  1950. ""y"": -0.10011352598667145,
  1951. ""z"": 0.7065470814704895,
  1952. ""w"": 0.5639185905456543
  1953. }
  1954. }
  1955. },
  1956. {
  1957. ""jointID"": 18,
  1958. ""jointPose"": {
  1959. ""position"": {
  1960. ""x"": 0.10060745477676392,
  1961. ""y"": -0.12356220930814743,
  1962. ""z"": 0.3838055431842804
  1963. },
  1964. ""rotation"": {
  1965. ""x"": 0.757267415523529,
  1966. ""y"": -0.6144872307777405,
  1967. ""z"": -0.15459957718849183,
  1968. ""w"": 0.15827326476573945
  1969. }
  1970. }
  1971. }
  1972. ]
  1973. }";
  1974. #endregion
  1975. }
  1976. }