Template Matching in robotics