Modality-invariant Visual Odometry for Indoor Navigation