Added auto-align function to robot/robot.py