Source

puma / Puma.py

Diff from to
 		if line == "a":
 			print [round(x * 180 / pi, 1) for x in r.fk.theta]
 			continue
+		g = re.match("^a (-?[0-9]+) (-?[0-9]+) (-?[0-9]+) (-?[0-9]+) (-?[0-9]+) (-?[0-9]+)", line)
+		if g is not None:
+			theta = [int(x) * pi / 180 for x in g.group(1,2,3,4,5,6)]
+			counts = r.ik.angle2count(theta, [])
+			print counts
+			r.move_raw(10000, counts)
+			continue
 		if line == "p":
 			print [int(x) for x in r.fk.p], [round(x,2) for x in r.fk.a], [round(x,2) for x in r.fk.s], [round(x,2) for x in r.fk.n]
 			continue