Teaching door assembly tasks in uncertain environment