Convex and analytically-invertible dynamics with contacts and constraints: Theory and implementation in MuJoCo | IEEE Conference Publication | IEEE Xplore