A vision-based error compensation method for accurate path tracking in robotic trimming