(self, filenames)
return motions
Load reference motions.

    Args:
      dir: Directory containing the reference motion files.
      filenames: Names of files in dir to be loaded.
    Returns: List of reference motions loaded from the files.
Load reference motions.
Load reference motions .
def _load_ref_motions(self, filenames):
    """Load reference motions.

    Args:
      dir: Directory containing the reference motion files.
      filenames: Names of files in dir to be loaded.
    Returns: List of reference motions loaded from the files.
    """
    num_files = len(filenames)
    if num_files == 0:
      raise ValueError("No reference motions specified.")

    total_time = 0.0
    motions = []
    for filename in filenames:
      curr_motion = motion_data.MotionData(filename)

      curr_duration = curr_motion.get_duration()
      total_time += curr_duration
      motions.append(curr_motion)

    logging.info("Loaded {:d} motion clips with {:.3f}s of motion data.".format(
        num_files, total_time))

    return motions
def _load_ref_motions ( self , filenames ) : num_files = len ( filenames ) if num_files == 0 : raise ValueError ( "No reference motions specified." ) total_time = 0.0 motions = [ ] for filename in filenames : curr_motion = motion_data . MotionData ( filename ) curr_duration = curr_motion . get_duration ( ) total_time += curr_duration motions . append ( curr_motion ) logging . info ( "Loaded {:d} motion clips with {:.3f}s of motion data." . format ( num_files , total_time ) ) return motions