SunFounder PiDog Kit, Release 1.0
(continued from previous page)
"function"
:
lambda
: shake_head(my_dog, head_yrp),
},
"stretch"
: {
"commands"
: [
"stretch"
],
"function"
:
lambda
: my_dog
.
do_action(
'stretch'
, wait
=
True
, speed
=
80
),
"after"
:
"stand up"
,
"status"
: STATUS_STAND,
},
"doze off"
: {
"commands"
: [
"doze off"
,
"does off"
],
"function"
:
lambda
: my_dog
.
do_action(
'doze_off'
, wait
=
True
, speed
=
95
),
"after"
:
"doze off"
,
"status"
: STATUS_LIE,
},
"push-up"
: {
"commands"
: [
"push-up"
],
"function"
:
lambda
: pushup(my_dog),
"after"
:
"push-up"
,
"status"
: STATUS_STAND,
},
"howling"
: {
"commands"
: [
"howling"
],
"function"
:
lambda
: howling(my_dog),
"after"
:
"sit"
,
"status"
: STATUS_SIT,
},
"twist body"
: {
"commands"
: [
"twist body"
],
"function"
:
lambda
: body_twisting(my_dog),
"before"
:
"stretch"
,
"after"
:
"sit"
,
"status"
: STATUS_STAND,
},
"scratch"
: {
"commands"
: [
"scratch"
],
"function"
:
lambda
: scratch(my_dog),
"after"
:
"sit"
,
"head_pitch"
: SIT_HEAD_PITCH,
"status"
: STATUS_SIT,
},
"handshake"
: {
"commands"
: [
"handshake"
],
"function"
:
lambda
: hand_shake(my_dog),
"after"
:
"sit"
,
"head_pitch"
: SIT_HEAD_PITCH,
"status"
: STATUS_SIT,
},
"high five"
: {
"commands"
: [
"high five"
,
"hi five"
],
"function"
:
lambda
: high_five(my_dog),
"after"
:
"sit"
,
"head_pitch"
: SIT_HEAD_PITCH,
"status"
: STATUS_SIT,
},
}
(continues on next page)
2.2. Funny Project
67
Содержание PiDog
Страница 1: ...SunFounder PiDog Kit Release 1 0 sunfounder Jan 09 2023 ...
Страница 2: ......
Страница 4: ...ii ...
Страница 6: ...SunFounder PiDog Kit Release 1 0 Content 2 CONTENTS ...
Страница 8: ...SunFounder PiDog Kit Release 1 0 4 Chapter 1 Component List and Assembly Instructions ...
Страница 15: ...SunFounder PiDog Kit Release 1 0 Step 7 Click the WRITE button 2 1 Quick Guide on Python 11 ...
Страница 92: ...SunFounder PiDog Kit Release 1 0 88 Chapter 2 Play with Python ...
Страница 108: ...SunFounder PiDog Kit Release 1 0 104 Chapter 4 Appendix ...