@staticmethod
def correct_tip_offset(apret):
    """Correct the offset of the tip position

        An estimate of the tip position is used to compute the
        contact point.
        """
    cpid = apret.estimate_contact_point_index()
    apret.data['tip position'] -= apret.data['tip position'][cpid]
