#The following line is required for the Finch to work.
#Please replace the import line with the Finch's location.
import edu.cmu.ri.createlab.terk.robot.finch.Finch as Finch
def moveFinch():
#The following line creates a Finch, called myFinch, for Python to use
myFinch = Finch()
#The following lines will make myFinch move
myFinch.setWheelVelocities(255, 255, 1000)
myFinch.setWheelVelocities(-255, -255, 2000)
myFinch.setWheelVelocities(255, -200, 1000)
myFinch.setWheelVelocities(255, 255, 1000)
myFinch.setWheelVelocities(-255, 200, 2000)
#Always quit the Finch before the program ends
myFinch.quit()
#Please replace the import line with the Finch's location.
import edu.cmu.ri.createlab.terk.robot.finch.Finch as Finch
def moveFinch():
#The following line creates a Finch, called myFinch, for Python to use
myFinch = Finch()
#The following lines will make myFinch move
myFinch.setWheelVelocities(255, 255, 1000)
myFinch.setWheelVelocities(-255, -255, 2000)
myFinch.setWheelVelocities(255, -200, 1000)
myFinch.setWheelVelocities(255, 255, 1000)
myFinch.setWheelVelocities(-255, 200, 2000)
#Always quit the Finch before the program ends
myFinch.quit()
No comments:
Post a Comment