@@ -11,8 +11,7 @@ def servos():
1111 i01 .moveArm ("right" ,5 ,111 ,28 ,15 )
1212 i01 .moveHand ("left" ,42 ,58 ,87 ,55 ,71 ,35 )
1313 i01 .moveHand ("right" ,81 ,20 ,82 ,60 ,105 ,113 )
14- i01 .speakBlocking ("I currently have twenty five hobby servos installed in my body to give me life" )
15- #i01.speakBlocking(u"У меня есть двадцать пять ходовых сервомоторов, установленных в моем теле, чтобы дать мне возможность двитаться")
14+ i01_chatBot .getResponse ("SERVOS_1" )
1615 i01 .setHandSpeed ("left" , 43.0 , 43.0 , 43.0 , 43.0 , 43.0 , 43.0 )
1716 i01 .setHandSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 )
1817 i01 .setArmSpeed ("right" , 43.0 , 43.0 , 43.0 , 43.0 )
@@ -23,8 +22,7 @@ def servos():
2322 i01 .moveArm ("right" ,20 ,67 ,31 ,22 )
2423 i01 .moveHand ("left" ,106 ,41 ,161 ,147 ,138 ,90 )
2524 i01 .moveHand ("right" ,0 ,0 ,0 ,54 ,91 ,90 )
26- i01 .speakBlocking ("there's one servo for moving my mouth up and down" )
27- #i01.speakBlocking(u"Есть один сервопривод для перемещения моей челюсти вверх и вниз")
25+ i01_chatBot .getResponse ("SERVOS_2" )
2826 sleep (1 )
2927 i01 .setHandSpeed ("left" , 43.0 , 43.0 , 100.0 , 43.0 , 43.0 , 43.0 )
3028 i01 .setHandSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 )
@@ -36,13 +34,11 @@ def servos():
3634 i01 .moveArm ("right" ,35 ,67 ,31 ,22 );
3735 i01 .moveHand ("left" ,106 ,0 ,0 ,147 ,138 ,7 );
3836 i01 .moveHand ("right" ,0 ,0 ,0 ,54 ,91 ,90 );
39- i01 .speakBlocking ("two for my eyes" )
40- #i01.speakBlocking(u"Два для глаз")
37+ i01_chatBot .getResponse ("SERVOS_3" )
4138 sleep (0.2 )
4239 i01 .setHandSpeed ("left" , 43.0 , 43.0 , 100.0 , 100.0 , 100.0 , 43.0 )
4340 i01 .moveHand ("left" ,106 ,0 ,0 ,0 ,0 ,7 );
44- i01 .speakBlocking ("and two more for my head" )
45- #i01.speakBlocking(u"И еще два для моей головы")
41+ i01_chatBot .getResponse ("SERVOS_4" )
4642 sleep (0.5 )
4743 i01 .setHandSpeed ("left" , 43.0 , 50.0 , 50.0 , 50.0 , 50.0 , 43.0 )
4844 i01 .setHandSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 )
@@ -54,15 +50,13 @@ def servos():
5450 i01 .moveArm ("right" ,35 ,67 ,31 ,20 );
5551 i01 .moveHand ("left" ,106 ,140 ,140 ,140 ,140 ,7 );
5652 i01 .moveHand ("right" ,0 ,0 ,0 ,54 ,91 ,90 );
57- i01 .speakBlocking ("so i can look around" )
58- #i01.speakBlocking(u"Поэтому я могу осмотреться")
53+ i01_chatBot .getResponse ("SERVOS_5" )
5954 sleep (0.5 )
6055 i01 .setHeadSpeed (22.0 , 22.0 )
6156 i01 .moveHead (105 ,125 );
6257 i01 .setArmSpeed ("left" , 50.0 , 50.0 , 50.0 , 50.0 )
6358 i01 .moveArm ("left" ,60 ,100 ,85 ,30 );
64- i01 .speakBlocking ("and see who's there" )
65- #i01.speakBlocking(u"И посмотреть, кто там")
59+ i01_chatBot .getResponse ("SERVOS_6" )
6660 i01 .setHeadSpeed (22.0 , 22.0 )
6761 i01 .moveHead (40 ,56 );
6862 sleep (0.5 )
@@ -74,8 +68,7 @@ def servos():
7468 i01 .moveArm ("right" ,5 ,95 ,40 ,11 )
7569 i01 .moveHand ("left" ,98 ,150 ,160 ,160 ,160 ,104 )
7670 i01 .moveHand ("right" ,0 ,0 ,50 ,54 ,91 ,90 );
77- i01 .speakBlocking ("there's three servos in each shoulder" )
78- #i01.speakBlocking(u"В каждом плече есть по три сервопривода")
71+ i01_chatBot .getResponse ("SERVOS_7" )
7972 i01 .moveHead (40 ,67 );
8073 sleep (2 )
8174 i01 .setHandSpeed ("left" , 36.0 , 50.0 , 36.0 , 36.0 , 36.0 , 36.0 )
@@ -89,28 +82,24 @@ def servos():
8982 i01 .moveHand ("left" ,42 ,0 ,100 ,80 ,113 ,35 )
9083 i01 .moveHand ("left" ,42 ,10 ,160 ,160 ,160 ,35 )
9184 i01 .moveHand ("right" ,81 ,20 ,82 ,60 ,105 ,113 )
92- i01 .speakBlocking ("here is the first servo movement" )
93- #i01.speakBlocking(u"Вот движение первого сервопривода")
85+ i01_chatBot .getResponse ("SERVOS_8" )
9486 sleep (1 )
9587 i01 .moveHead (37 ,60 );
9688 i01 .setHandSpeed ("left" , 100.0 , 100.0 , 50.0 , 50.0 , 100.0 , 36.0 )
9789 i01 .setArmSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 )
9890 i01 .moveArm ("right" ,5 ,95 ,67 ,42 )
9991 i01 .moveHand ("left" ,42 ,10 ,10 ,160 ,160 ,30 )
100- i01 .speakBlocking ("this is the second one" )
101- #i01.speakBlocking(u"Это второго")
92+ i01_chatBot .getResponse ("SERVOS_9" )
10293 sleep (1 )
10394 i01 .moveHead (43 ,69 );
10495 i01 .setArmSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 )
10596 i01 .moveArm ("right" ,5 ,134 ,67 ,42 )
10697 i01 .moveHand ("left" ,42 ,10 ,10 ,10 ,160 ,35 )
107- i01 .speakBlocking ("now you see the third" )
108- #i01.speakBlocking(u"Теперь вы видите третий")
98+ i01_chatBot .getResponse ("SERVOS_10" )
10999 sleep (1 )
110100 i01 .setArmSpeed ("right" , 36.0 , 36.0 , 36.0 , 36.0 )
111101 i01 .moveArm ("right" ,20 ,90 ,45 ,16 )
112- i01 .speakBlocking ("they give me a more human like movement" )
113- #i01.speakBlocking(u"Они дают мне более человекоподобные движения")
102+ i01_chatBot .getResponse ("SERVOS_11" )
114103 sleep (1 )
115104 i01 .setHandSpeed ("left" , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 )
116105 i01 .setArmSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 );
@@ -119,8 +108,7 @@ def servos():
119108 i01 .moveArm ("right" ,90 ,100 ,67 ,26 )
120109 i01 .moveHand ("left" ,42 ,80 ,100 ,80 ,113 ,35 )
121110 i01 .moveHand ("right" ,81 ,0 ,82 ,60 ,105 ,69 )
122- i01 .speakBlocking ("but, i have only one servo, to move each elbow" )
123- #i01.speakBlocking(u"Но у меня есть только по одному сервоприводу, чтобы двигать каждым бицепсом")
111+ i01_chatBot .getResponse ("SERVOS_12" )
124112 i01 .setHandSpeed ("left" , 43.0 , 43.0 , 43.0 , 43.0 , 43.0 , 43.0 )
125113 i01 .setHandSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 )
126114 i01 .setArmSpeed ("right" , 43.0 , 43.0 , 43.0 , 43.0 )
@@ -131,30 +119,26 @@ def servos():
131119 i01 .moveArm ("right" ,90 ,95 ,68 ,15 )
132120 i01 .moveHand ("left" ,42 ,0 ,100 ,80 ,113 ,35 )
133121 i01 .moveHand ("right" ,81 ,0 ,82 ,60 ,105 ,0 )
134- i01 .speakBlocking ("that, leaves me, with one servo per wrist" )
135- #i01.speakBlocking(u"По одному сервоприводу на запястьях")
122+ i01_chatBot .getResponse ("SERVOS_13" )
136123 i01 .moveHead (40 ,60 )
137124 i01 .setHandSpeed ("left" , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 )
138125 i01 .setHandSpeed ("right" , 50.0 , 50.0 , 50.0 , 50.0 , 50.0 , 50.0 )
139126 i01 .moveArm ("left" ,72 ,44 ,90 ,9 )
140127 i01 .moveArm ("right" ,90 ,95 ,68 ,15 )
141128 i01 .moveHand ("left" ,42 ,0 ,100 ,80 ,113 ,35 )
142129 i01 .moveHand ("right" , 10 , 140 ,82 ,60 ,105 ,10 )
143- i01 .speakBlocking ("and one servo for each finger." )
144- #i01.speakBlocking(u"И один сервопривод для каждого пальца.")
130+ i01_chatBot .getResponse ("SERVOS_14" )
145131 sleep (0.5 )
146132 i01 .moveHand ("left" ,42 ,0 ,100 ,80 ,113 ,35 )
147133 i01 .moveHand ("right" , 50 , 51 , 15 ,23 , 30 ,140 );
148- i01 .speakBlocking ("these servos are located in my forearms" )
149- #i01.speakBlocking(u"Эти сервоприводы расположены в моих предплечьях")
134+ i01_chatBot .getResponse ("SERVOS_15" )
150135 i01 .setHandSpeed ("left" , 36.0 , 36.0 , 36.0 , 36.0 ,36.0 , 36.0 )
151136 i01 .setHandSpeed ("right" , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 , 100.0 )
152137 i01 .moveHand ("left" , 36 , 52 , 8 ,22 , 20 );
153138 i01 .moveHand ("right" , 120 , 147 , 130 ,110 , 125 );
154139 removeleftarm ()
155140 sleep (1 )
156- i01 .speakBlocking ("they are hooked up, by the use of tendons" )
157- #i01.speakBlocking(u"Они подключаются, через сухожилия")
141+ i01_chatBot .getResponse ("SERVOS_16" )
158142 i01 .moveHand ("left" ,10 ,20 ,30 ,40 ,60 ,150 );
159143 i01 .moveHand ("right" ,110 ,137 ,120 ,100 ,105 ,130 );
160144 i01 .setHeadSpeed (1 ,1 )
0 commit comments