(self, num_cycles)
return cycle_offset_rot
Calculates change in the root rotation after a given number of cycles.

    Args:
      num_cycles: Number of cycles since the start of the motion.

    Returns:
      Net rotation of the root orientation.
Calculates change in the root rotation after a given number of cycles.
Calculates change in the root rotation after a given number of cycles .
def _calc_cycle_offset_rot(self, num_cycles):
    """Calculates change in the root rotation after a given number of cycles.

    Args:
      num_cycles: Number of cycles since the start of the motion.

    Returns:
      Net rotation of the root orientation.
    """
    if not self._enable_cycle_offset_rot:
      cycle_offset_rot = np.array([0, 0, 0, 1])
    else:
      heading_offset = num_cycles * self._cycle_delta_heading
      cycle_offset_rot = transformations.quaternion_from_euler(
          0, 0, heading_offset)

    return cycle_offset_rot
def _calc_cycle_offset_rot ( self , num_cycles ) : if not self . _enable_cycle_offset_rot : cycle_offset_rot = np . array ( [ 0 , 0 , 0 , 1 ] ) else : heading_offset = num_cycles * self . _cycle_delta_heading cycle_offset_rot = transformations . quaternion_from_euler ( 0 , 0 , heading_offset ) return cycle_offset_rot