A cost-function driven adaptive welding framework for multi-pass robotic welding. (July 2021)