Example #1
0
    /// <summary>
    /// Test function to test if the command parsing works
    /// </summary>
    public void testcmd()
    {
        MultiCmd.MultiParse(_inputField.text, waitTime);
        // List<double> joints = CommandParse.CmdParse(_inputField.text,out Dictionary<char,float> parameterDictionary);

        /*  foreach (var ctx in parameterDictionary)
         * {
         *    Debug.Log(ctx.Key +  " " + ctx.Value);
         * }
         * if (joints == null)
         * {
         *    Debug.Log("Error in provided Command String");
         * }
         * foreach (var VARIABLE in joints)
         * {
         *    Debug.Log("Joints :" + VARIABLE);
         * }
         */
    }
Example #2
0
    public void replayUpdate()
    {
        String temp = null;

        while (index < rows.Count - 1)
        {
            List <String> columns = ReadCSV(rows[index]);
            temp += "\nmovej([" + columns[1] + "," + columns[2] + "," + columns[3] + "," + columns[4] + "," + columns[5] + "," + columns[6] +
                    "],a=0.15,v=0.16,r=0.01)";
            index++;
        }
        Debug.Log(index);
        _multiCmd.MultiParse(temp, timeDelay);
        index = 0;
    }
Example #3
0
    public void TaskOnClick_FreeHand()
    {
        int    index = 1;
        string s     = freeHand.text.Replace(" ", ",");

        rows = TextAssetToList(s);

        String temp = null;

        while (index < rows.Count - 1)
        {
            List <String> columns = ReadCSV(rows[index]);
            temp += "\nmovej([" + columns[1] + "," + columns[2] + "," + columns[3] + "," + columns[4] + "," + columns[5] + "," + columns[6] +
                    "],a=0.15,v=0.16,r=0.01)";
            Debug.Log(temp);
            index++;
        }

        _multiCmd.MultiParse(temp, 0.016f);
    }