public void Begin()
    {
        //Debug.Log("Curr Sensor: " + currentSensor);
        Debug.Log(expCounter + ">>>>");
        currentSensor = PlayerPrefs.GetInt("SensorType");
        int expc = expCounter + 1;

        experimentText.text = "Experiment " + ExperimentalID + " is running";
        statusText.text     = "Trial " + expc + " is running.";
        sensor = SensorsComponent.SensorFactory.GetInstance(currentSensor, robotPrefab);

        createMazeButtonListener();

        if (PlayerPrefs.GetString("ExperimentTypevalue") == "Training Data")
        {
            exploration.GetNextCommand(null, currentSensor - 1, currentAlgo, 0);
            Debug.Log("Training Complete " + expCounter);
        }
        else
        {
            Debug.Log(sensor.GetCurrentSensor());
            // manualButton.onClick.AddListener(manualButtonListener);
            automaticButtonListener();
            backButton.interactable = false;
        }

        expCounter++;
        if (PlayerPrefs.GetString("ExperimentTypevalue") == "Training Data" && expCounter < PlayerPrefs.GetInt("Iteration"))
        {
            Begin();
        }
    }
 void Start()
 {
     sensor = SensorsComponent.SensorFactory.GetInstance(currentSensor, robotPrefab);
     createMaze.onClick.AddListener(createMazeButtonListener);
     expDB = new database();
     manualButton.onClick.AddListener(manualButtonListener);
     automaticButton.onClick.AddListener(automaticButtonListener);
     backButton.interactable = false;
 }
Beispiel #3
0
 void Start()
 {
     currentSensor = PlayerPrefs.GetInt("SensorType");
     sensor        = SensorsComponent.SensorFactory.GetInstance(currentSensor, robotPrefab);
     createMaze.onClick.AddListener(createMazeButtonListener);
     expDB = new database();
     manualButton.onClick.AddListener(manualButtonListener);
     automaticButton.onClick.AddListener(automaticButtonListener);
     backButton.interactable = false;
     Debug.Log(sensor.GetCurrentSensor());
 }
Beispiel #4
0
    void Start()
    {
        sensor = SensorsComponent.SensorFactory.GetInstance(1, robotPrefab);
        createMaze.onClick.AddListener(createMazeButtonListener);
        expDB = new database();
        manualButton.onClick.AddListener(manualButtonListener);
        automaticButton.onClick.AddListener(automaticButtonListener);
        backButton.interactable = false;

        dbm = new DataBaseManager();
        dbm.ConnectToDB("Rover.db");
    }
Beispiel #5
0
    public void Begin()
    {
        //Debug.Log("Curr Sensor: " + currentSensor);
        currentSensor = PlayerPrefs.GetInt("SensorType");
        int expc = expCounter + 1;

        experimentText.text = "Experiment " + ExperimentalID + " is running";
        statusText.text     = "Trail " + expc + " is running.";
        sensor = SensorsComponent.SensorFactory.GetInstance(currentSensor, robotPrefab);
        createMazeButtonListener();
        Debug.Log(sensor.GetCurrentSensor());
        // manualButton.onClick.AddListener(manualButtonListener);
        automaticButtonListener();
        backButton.interactable = false;

        expCounter++;
    }
Beispiel #6
0
    public void Begin()
    {
        int expc = expCounter + 1;

        statusText.text = "Experiment " + expc + " is Running.";
        sensor          = SensorsComponent.SensorFactory.GetInstance(1, robotPrefab);
        createMazeButtonListener();

        // manualButton.onClick.AddListener(manualButtonListener);
        automaticButtonListener();
        backButton.interactable = false;

        /*for (int i = 0; i < 3; i++)
         * {
         *  Debug.Log(i);
         *
         * }*/
        expCounter++;
    }
Beispiel #7
0
 void Start()
 {
     sensor = SensorsComponent.SensorFactory.GetInstance(1, robotPrefab);
     createMaze.onClick.AddListener(createMazeButtonListener);
     backButton.interactable = false;
 }
Beispiel #8
0
 void Start()
 {
     sensor = SensorsComponent.SensorFactory.GetInstance(1, Cube);
     Debug.Log(sensor.GetCurrentSensor());
 }
Beispiel #9
0
 void Start()
 {
     sensor = SensorsComponent.SensorFactory.GetInstance(1, Cube);
     algorithmsSimulation = new AlgorithmsSimulation();
     Debug.Log(sensor.GetCurrentSensor());
 }
 void Start()
 {
     sensor = SensorsComponent.SensorFactory.GetInstance(getSensorType(), Cube);
     //sensor = SensorFactory.GetInstance(getSensorType(), Cube);
 }