(self, motion_file)
return
Initialize motion data.

    Args:
      motion_file: The path to the motion data file.
Initialize motion data.
Initialize motion data .
def __init__(self, motion_file):
    """Initialize motion data.

    Args:
      motion_file: The path to the motion data file.
    """
    self._loop_mode = LoopMode.Clamp
    self._frame_duration = 0
    self._frames = None
    self._frame_vels = None

    self.load(motion_file)

    # precompute the net changes in root position and rotation over the course
    # of the motion
    self._cycle_delta_pos = self._calc_cycle_delta_pos()
    self._cycle_delta_heading = self._calc_cycle_delta_heading()

    return
def __init__ ( self , motion_file ) : self . _loop_mode = LoopMode . Clamp self . _frame_duration = 0 self . _frames = None self . _frame_vels = None self . load ( motion_file ) # precompute the net changes in root position and rotation over the course # of the motion self . _cycle_delta_pos = self . _calc_cycle_delta_pos ( ) self . _cycle_delta_heading = self . _calc_cycle_delta_heading ( ) return