SunFounder PiDog Kit, Release 1.0
(continued from previous page)
"status"
: STATUS_STAND,
"head_pitch"
: STAND_HEAD_PITCH,
},
"turn right"
: {
"commands"
: [
"turn right"
],
"function"
:
lambda
: my_dog
.
do_action(
'turn_right'
, wait
=
False
, speed
=
98
),
"status"
: STATUS_STAND,
"head_pitch"
: STAND_HEAD_PITCH,
},
"trot"
: {
"commands"
: [
"trot"
],
"function"
:
lambda
: my_dog
.
do_action(
'trot'
, wait
=
False
, speed
=
98
),
"status"
: STATUS_STAND,
"head_pitch"
: STAND_HEAD_PITCH,
},
"stop"
: {
"commands"
: [
"stop"
],
},
"lie down"
: {
"commands"
: [
"lie down"
],
"function"
:
lambda
: my_dog
.
do_action(
'lie'
, wait
=
False
, speed
=
70
),
"head_pitch"
: STAND_HEAD_PITCH,
"status"
: STATUS_LIE,
},
"stand up"
: {
"commands"
: [
"stand up"
],
"function"
:
lambda
: my_dog
.
do_action(
'stand'
, wait
=
False
, speed
=
70
),
"head_pitch"
: STAND_HEAD_PITCH,
"status"
: STATUS_STAND,
},
"sit"
: {
"commands"
: [
"sit"
,
"sit down"
,
"set"
,
"set down"
],
"function"
:
lambda
: my_dog
.
do_action(
'sit'
, wait
=
False
, speed
=
70
),
"head_pitch"
: SIT_HEAD_PITCH,
"status"
: STATUS_SIT,
},
"bark"
: {
"commands"
: [
"bark"
,
"park"
,
"fuck"
],
"function"
:
lambda
: bark(my_dog, head_yrp, pitch_comp
=
head_pitch_init),
},
"bark harder"
: {
"commands"
: [
"bark harder"
,
"park harder"
,
"fuck harder"
,
"bark harbor"
,
˓
→
"park harbor"
,
"fuck harbor"
],
"function"
:
lambda
: bark_action(my_dog, head_yrp,
'single_bark_1'
),
},
"pant"
: {
"commands"
: [
"pant"
,
"paint"
],
"function"
:
lambda
: pant(my_dog, head_yrp, pitch_comp
=
head_pitch_init),
},
"wag tail"
: {
"commands"
: [
"wag tail"
,
"wake tail"
,
"wake town"
,
"wait town"
,
"wait tail"
,
˓
→
"wake time"
,
"wait time"
,
"wait tail"
],
"function"
:
lambda
: my_dog
.
do_action(
'wag_tail'
, wait
=
True
, speed
=
100
),
"after"
:
"wag tail"
,
},
"shake head"
: {
"commands"
: [
"shake head"
],
(continues on next page)
66
Chapter 2. Play with Python
Summary of Contents for PiDog
Page 1: ...SunFounder PiDog Kit Release 1 0 sunfounder Jan 09 2023 ...
Page 2: ......
Page 4: ...ii ...
Page 6: ...SunFounder PiDog Kit Release 1 0 Content 2 CONTENTS ...
Page 8: ...SunFounder PiDog Kit Release 1 0 4 Chapter 1 Component List and Assembly Instructions ...
Page 15: ...SunFounder PiDog Kit Release 1 0 Step 7 Click the WRITE button 2 1 Quick Guide on Python 11 ...
Page 92: ...SunFounder PiDog Kit Release 1 0 88 Chapter 2 Play with Python ...
Page 108: ...SunFounder PiDog Kit Release 1 0 104 Chapter 4 Appendix ...