(self, time)
return blend_frame
Calculates the frame for a given point in time.

    Args:
      time: Time at which the frame is to be computed.
    Return: An array containing the frame for the given point in time,
      specifying the pose of the character.
Calculates the frame for a given point in time.
Calculates the frame for a given point in time .
def calc_frame(self, time):
    """Calculates the frame for a given point in time.

    Args:
      time: Time at which the frame is to be computed.
    Return: An array containing the frame for the given point in time,
      specifying the pose of the character.
    """
    f0, f1, blend = self.calc_blend_idx(time)

    frame0 = self.get_frame(f0)
    frame1 = self.get_frame(f1)
    blend_frame = self.blend_frames(frame0, frame1, blend)

    blend_root_pos = self.get_frame_root_pos(blend_frame)
    blend_root_rot = self.get_frame_root_rot(blend_frame)

    cycle_count = self.calc_cycle_count(time)
    cycle_offset_pos = self._calc_cycle_offset_pos(cycle_count)
    cycle_offset_rot = self._calc_cycle_offset_rot(cycle_count)

    blend_root_pos = pose3d.QuaternionRotatePoint(blend_root_pos,
                                                  cycle_offset_rot)
    blend_root_pos += cycle_offset_pos

    blend_root_rot = transformations.quaternion_multiply(
        cycle_offset_rot, blend_root_rot)
    blend_root_rot = motion_util.standardize_quaternion(blend_root_rot)

    self.set_frame_root_pos(blend_root_pos, blend_frame)
    self.set_frame_root_rot(blend_root_rot, blend_frame)

    return blend_frame
def calc_frame ( self , time ) : f0 , f1 , blend = self . calc_blend_idx ( time ) frame0 = self . get_frame ( f0 ) frame1 = self . get_frame ( f1 ) blend_frame = self . blend_frames ( frame0 , frame1 , blend ) blend_root_pos = self . get_frame_root_pos ( blend_frame ) blend_root_rot = self . get_frame_root_rot ( blend_frame ) cycle_count = self . calc_cycle_count ( time ) cycle_offset_pos = self . _calc_cycle_offset_pos ( cycle_count ) cycle_offset_rot = self . _calc_cycle_offset_rot ( cycle_count ) blend_root_pos = pose3d . QuaternionRotatePoint ( blend_root_pos , cycle_offset_rot ) blend_root_pos += cycle_offset_pos blend_root_rot = transformations . quaternion_multiply ( cycle_offset_rot , blend_root_rot ) blend_root_rot = motion_util . standardize_quaternion ( blend_root_rot ) self . set_frame_root_pos ( blend_root_pos , blend_frame ) self . set_frame_root_rot ( blend_root_rot , blend_frame ) return blend_frame