Vision-based system identification and 3D keypoint discovery using dynamics constraints