public void readInData(string filename)
    {
        var reader = new StreamReader(File.OpenRead("Assets/PoseRecordings/" + filename));

        while (!reader.EndOfStream)
        {
            string line = reader.ReadLine();
            rpyVals.Add(line);
        }

        string[] parts;

        foreach (string vals in rpyVals)
        {
            parts = vals.Split(',');
            float[] f = new float[] {
                Single.Parse(parts[0]), Single.Parse(parts[1]), Single.Parse(parts[2]), Single.Parse(parts[3]),
                Single.Parse(parts[4]), Single.Parse(parts[5]), Single.Parse(parts[6]), Single.Parse(parts[7]),
                Single.Parse(parts[8]), Single.Parse(parts[9]), Single.Parse(parts[10]), Single.Parse(parts[11]),
                Single.Parse(parts[12]), Single.Parse(parts[13]), Single.Parse(parts[14]), Single.Parse(parts[15]),
                Single.Parse(parts[16]), Single.Parse(parts[17]), Single.Parse(parts[18]), Single.Parse(parts[19]),
                Single.Parse(parts[20]), Single.Parse(parts[21]), Single.Parse(parts[22]), Single.Parse(parts[23]),
                Single.Parse(parts[24]), Single.Parse(parts[25]), Single.Parse(parts[26]), Single.Parse(parts[27]),
                Single.Parse(parts[28]), Single.Parse(parts[29]), Single.Parse(parts[30]), Single.Parse(parts[31]),
                Single.Parse(parts[32]), Single.Parse(parts[33]), Single.Parse(parts[34]), Single.Parse(parts[35]),
                Single.Parse(parts[36]), Single.Parse(parts[37]), Single.Parse(parts[38]), Single.Parse(parts[39])
            };
            orientAngles.addAngles(f);
        }

        Debug.Log("Finished reading in data");
    }
 //interface method
 public void addAngles(float[] angles)
 {
     updateOrientations.addAngles(angles);
 }