This repository was archived by the owner on Apr 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmotion.hpp
More file actions
127 lines (114 loc) · 5.22 KB
/
motion.hpp
File metadata and controls
127 lines (114 loc) · 5.22 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
int stopMotion[1][11] = { //直立不動
{600,0,0,0,0,0,0,0,0,0,0},
};
int goStepRight[3][11] = { //一歩前進(右足)
{300,0,0,800,0,0,0,0,0,0,0},
{300,-600,-600,800,0,0,0,0,0,0,0},
{300,-600,-600,0,0,0,0,0,0,0,0},
};
int goStepLeft[3][11] = { //一歩前進(左足)
{300,-600,-600,-800,0,0,0,0,0,0,0},
{300,600,600,-800,0,0,0,0,0,0,0},
{300,600,600,0,0,0,0,0,0,0,0},
};
int backStepRight[3][11] = { //一歩後退(右足)
{300,-600,-600,800,0,0,0,0,0,0,0},
{300,600,600,800,0,0,0,0,0,0,0},
{300,600,600,0,0,0,0,0,0,0,0},
};
int backStepLeft[3][11] = { //一歩後退(左足)
{300,0,0,-800,0,0,0,0,0,0,0},
{300,-600,-600,-800,0,0,0,0,0,0,0},
{300,-600,-600,0,0,0,0,0,0,0,0},
};
int turningRight45[10][11] = { //右旋回(45°)
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,-650,600,0,0,0,0,0,0,0},
{500,0,-650,-600,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,-650,600,0,0,0,0,0,0,0},
{500,0,-650,-600,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int turningRight90[20][11] = { //右旋回(90°)
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,-650,600,0,0,0,0,0,0,0},
{500,0,-650,-600,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,-650,600,0,0,0,0,0,0,0},
{500,0,-650,-600,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,-650,600,0,0,0,0,0,0,0},
{500,0,-650,-600,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,-650,600,0,0,0,0,0,0,0},
{500,0,-650,-600,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int turningLeft45[10][11] = { //左旋回(45°)
{300,0,0,-600,0,0,0,0,0,0,0},
{300,650,0,-600,0,0,0,0,0,0,0},
{500,650,0,600,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,650,0,-600,0,0,0,0,0,0,0},
{500,650,0,600,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int turningLeft90[20][11] = { //左旋回(90°)
{300,0,0,-600,0,0,0,0,0,0,0},
{300,650,0,-600,0,0,0,0,0,0,0},
{500,650,0,600,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,650,0,-600,0,0,0,0,0,0,0},
{500,650,0,600,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,650,0,-600,0,0,0,0,0,0,0},
{500,650,0,600,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
{300,0,0,-600,0,0,0,0,0,0,0},
{300,650,0,-600,0,0,0,0,0,0,0},
{500,650,0,600,0,0,0,0,0,0,0},
{300,0,0,600,0,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int waveRightHand[3][11] = { //右手を振る
{300,0,0,0,0,600,0,0,0,0,0},
{300,0,0,0,0,-600,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int waveLeftHand[3][11] = { //左手を振る
{300,0,0,0,0,0,600,0,0,0,0},
{300,0,0,0,0,0,-600,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int waveBothHand[3][11] = { //両手を振る
{300,0,0,0,0,600,600,0,0,0,0},
{300,0,0,0,0,-600,-600,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int turnRight[2][11] = { //右を向く
{300,0,0,0,1000,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};
int turnLeft[2][11] = { //左を向く
{300,0,0,0,-1000,0,0,0,0,0,0},
{300,0,0,0,0,0,0,0,0,0,0},
};