A hierarchical visual model for robot automatic arc welding guidance