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