Skip to content

Commit 6a85cd4

Browse files
add stretch
1 parent 4c9a6d3 commit 6a85cd4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doggo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ async def act(self, params):
132132
await self.call_robot(SPORT_CMD["FrontJump"])
133133
return "Doggo is now jumping"
134134

135+
class Stretch(Trick):
136+
def __init__(self, dog):
137+
super().__init__(dog, "stretch", "Make the dog stretch", "tools/empty.json")
138+
139+
async def act(self, params):
140+
await self.call_robot(SPORT_CMD["Stretch"])
141+
return "Doggo is now stretching"
142+
135143
def trick_tools(dog):
136144
tricks = [
137145
StandUp(dog),
@@ -141,6 +149,7 @@ def trick_tools(dog):
141149
Stop(dog),
142150
Dance(dog),
143151
Jump(dog),
152+
Stretch(dog),
144153
]
145154
return [trick.tool() for trick in tricks]
146155

0 commit comments

Comments
 (0)