forked from neu-vi/OmniControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paramUtil.py
85 lines (77 loc) · 2.62 KB
/
paramUtil.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import numpy as np
# Define a kinematic tree for the skeletal struture
kit_kinematic_chain = [[0, 11, 12, 13, 14, 15], [0, 16, 17, 18, 19, 20], [0, 1, 2, 3, 4], [3, 5, 6, 7], [3, 8, 9, 10]]
kit_raw_offsets = np.array(
[
[0, 0, 0],
[0, 1, 0],
[0, 1, 0],
[0, 1, 0],
[0, 1, 0],
[1, 0, 0],
[0, -1, 0],
[0, -1, 0],
[-1, 0, 0],
[0, -1, 0],
[0, -1, 0],
[1, 0, 0],
[0, -1, 0],
[0, -1, 0],
[0, 0, 1],
[0, 0, 1],
[-1, 0, 0],
[0, -1, 0],
[0, -1, 0],
[0, 0, 1],
[0, 0, 1]
]
)
t2m_raw_offsets = np.array([[0,0,0],
[1,0,0],
[-1,0,0],
[0,1,0],
[0,-1,0],
[0,-1,0],
[0,1,0],
[0,-1,0],
[0,-1,0],
[0,1,0],
[0,0,1],
[0,0,1],
[0,1,0],
[1,0,0],
[-1,0,0],
[0,0,1],
[0,-1,0],
[0,-1,0],
[0,-1,0],
[0,-1,0],
[0,-1,0],
[0,-1,0]])
t2m_kinematic_chain = [[0, 2, 5, 8, 11], [0, 1, 4, 7, 10], [0, 3, 6, 9, 12, 15], [9, 14, 17, 19, 21], [9, 13, 16, 18, 20]]
t2m_left_hand_chain = [[20, 22, 23, 24], [20, 34, 35, 36], [20, 25, 26, 27], [20, 31, 32, 33], [20, 28, 29, 30]]
t2m_right_hand_chain = [[21, 43, 44, 45], [21, 46, 47, 48], [21, 40, 41, 42], [21, 37, 38, 39], [21, 49, 50, 51]]
kit_tgt_skel_id = '03950'
t2m_tgt_skel_id = '000021'
tgt_offsets = np.array([[ 0.0000, 0.0000, 0.0000],
[ 0.1031, 0.0000, 0.0000],
[-0.1099, 0.0000, 0.0000],
[ 0.0000, 0.1316, 0.0000],
[ 0.0000, -0.3936, 0.0000],
[ 0.0000, -0.3902, 0.0000],
[ 0.0000, 0.1432, 0.0000],
[ 0.0000, -0.4324, 0.0000],
[ 0.0000, -0.4256, 0.0000],
[ 0.0000, 0.0574, 0.0000],
[ 0.0000, 0.0000, 0.1434],
[ 0.0000, 0.0000, 0.1494],
[ 0.0000, 0.2194, 0.0000],
[ 0.1375, 0.0000, 0.0000],
[-0.1434, 0.0000, 0.0000],
[ 0.0000, 0.0000, 0.1030],
[ 0.0000, -0.1316, 0.0000],
[ 0.0000, -0.1230, 0.0000],
[ 0.0000, -0.2568, 0.0000],
[ 0.0000, -0.2631, 0.0000],
[ 0.0000, -0.2660, 0.0000],
[ 0.0000, -0.2699, 0.0000]])