Commits

Anonymous committed d60eb5c

Make swing take an argument

  • Participants
  • Parent commits d03c49d

Comments (0)

Files changed (1)

 		self.moveto(6, cur + 20000, 1000)
 		time.sleep(3)
 		self.moveto(6, cur - 30000, speed)
-		time.sleep(4)
+		time.sleep(10)
 		self.moveto(6, cur, 1000)
 
 	# Move immediately to an explicit IK computed position
 		if line == "start":
 			r.start()
 			continue
-		if line == "swing":
-			r.swing(10000)
+		g = re.match("^swing ([0-9]+)", line)
+		if g is not None:
+			r.swing(int(g.group(1)))
 			continue
 		if line == "hold":
 			r.hold()
 		if g is not None:
 			xyz = [int(x) for x in g.group(1).split(" ")]
 			r.move_to(vel, xyz)
+			continue;
+
+		print "?"