+ # save position
+ save_pos.append(robot.pos.x, robot.pos, a)
+
+ pos = robot.pos.x, robot.pos.y, 0.3
+ if pos != last_pos:
+ robot_trail_list.append(pos)
+ last_pos = pos
+ robot_trail_l = len(robot_trail_list)
+ if robot_trail_l > max_trail:
+ robot_trail_list = robot_trail_list[robot_trail_l - max_trail:]
+ robot_trail.pos = robot_trail_list
+
+def graph():
+ pass
+
+def save():
+ f = open("/tmp/robot_save", "w")
+ for p in save_pos:
+ f.write("%f %f %f\n"%(p[0], p[1], p[2]))
+ f.close()
+
+def silent_mkfifo(f):