1. Trammell Hudson
  2. puma

Commits

Trammell Hudson  committed 1fbf237

script to play a quick round of shuffleboard

  • Participants
  • Parent commits 380da48
  • Branches default

Comments (0)

Files changed (1)

File play-ball.py

View file
  • Ignore whitespace
+#!/usr/bin/python
+# Play a quick round of shuffleboard to show how it is done
+import PumaConfig
+import Puma
+import sys
+import time
+
+r = Puma.Puma(("localhost", 31415), PumaConfig.joints)
+vel = 10
+power0 = 1550
+power1 = 1600
+power2 = 1560
+power3 = 1560
+time.sleep(2)
+
+r.hold()
+
+raw_input("Station 1")
+r.move_to(vel, [400, 130, -70])
+
+raw_input("Swing 1!")
+r.swing(power0)
+
+raw_input("Swing 2!")
+r.swing(power1)
+
+raw_input("Station 2")
+r.move_to(vel, [300, 130, -85])
+
+raw_input("Swing 1!")
+r.swing(power2)
+
+raw_input("Station 3")
+r.move_to(vel, [430, 130, -60])
+
+raw_input("Swing 1!")
+r.swing(power3)
+
+raw_input("Go home")
+r.home()
+
+
+