Robot adaptive welding and multi pass