Text this: Optimization of robotic spray painting trajectories using machine learning for improved surface quality