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

    Args:
      time: Time at which the velocities are to be computed.
    Return: An array containing the frame velocity for the given point in time,
      specifying the velocity of the root and all joints.
Calculates the frame velocity for a given point in time.
Calculates the frame velocity for a given point in time .
def calc_frame_vel(self, time):
    """Calculates the frame velocity for a given point in time.

    Args:
      time: Time at which the velocities are to be computed.
    Return: An array containing the frame velocity for the given point in time,
      specifying the velocity of the root and all joints.
    """
    f0, f1, blend = self.calc_blend_idx(time)

    frame_vel0 = self.get_frame_vel(f0)
    frame_vel1 = self.get_frame_vel(f1)
    blend_frame_vel = self.blend_frame_vels(frame_vel0, frame_vel1, blend)

    root_vel = self.get_frame_root_vel(blend_frame_vel)
    root_ang_vel = self.get_frame_root_ang_vel(blend_frame_vel)

    cycle_count = self.calc_cycle_count(time)
    cycle_offset_rot = self._calc_cycle_offset_rot(cycle_count)
    root_vel = pose3d.QuaternionRotatePoint(root_vel, cycle_offset_rot)
    root_ang_vel = pose3d.QuaternionRotatePoint(root_ang_vel, cycle_offset_rot)

    self.set_frame_root_vel(root_vel, blend_frame_vel)
    self.set_frame_root_ang_vel(root_ang_vel, blend_frame_vel)

    return blend_frame_vel
def calc_frame_vel ( self , time ) : f0 , f1 , blend = self . calc_blend_idx ( time ) frame_vel0 = self . get_frame_vel ( f0 ) frame_vel1 = self . get_frame_vel ( f1 ) blend_frame_vel = self . blend_frame_vels ( frame_vel0 , frame_vel1 , blend ) root_vel = self . get_frame_root_vel ( blend_frame_vel ) root_ang_vel = self . get_frame_root_ang_vel ( blend_frame_vel ) cycle_count = self . calc_cycle_count ( time ) cycle_offset_rot = self . _calc_cycle_offset_rot ( cycle_count ) root_vel = pose3d . QuaternionRotatePoint ( root_vel , cycle_offset_rot ) root_ang_vel = pose3d . QuaternionRotatePoint ( root_ang_vel , cycle_offset_rot ) self . set_frame_root_vel ( root_vel , blend_frame_vel ) self . set_frame_root_ang_vel ( root_ang_vel , blend_frame_vel ) return blend_frame_vel