SunFounder PiCrawler Kit
Ready to explore and create with us? Click [] and join today!
3.11 Pose
PiCrawler can assume a specific posture by writing a coordinate array. Here it assumes a raised right rear foot posture.
Run the Code
cd ~/picrawler/examples
sudo python3 do_step.py
Code
from picrawler import Picrawler
from time import sleep
crawler = Picrawler()
## [right front],[left front],[left rear],[right rear]
new_step=[[45, 45, -75], [45, 0, -75], [45, 0, -30], [45, 45, -75]]
stand_step = crawler.move_list['stand'][0]
def main():
while True:
speed = 80
(continues on next page)
68 Chapter 3. Play with Python