updated tracks computation, threshold and criterion to keep rig pose. #2