Equipment for measuring the contacting force or the distance before contacting between two members during the positioning operation