Measuring and controlling motions and forces