Shape from touch by a neural net