Learn, detect kinematic contraints in a plane from displacement and force