// Use this for initialization void Start() { scm = GetComponent <SimulatorCommandsManager>(); robot = scm.robot; uIDD = GetComponent <UniqueIdDistributor>(); vision = robot.GetComponent <VisionManager>(); smell = robot.GetComponent <SmellManager>(); hearing = robot.GetComponent <HearingManager>(); taste = robot.GetComponent <TasteManager>(); touch = robot.GetComponent <TouchManager>(); locationsOnScene = new List <GameObject>(GameObject.FindGameObjectsWithTag(Constants.TAG_KNOWLOCATIONS)); objectsInFildOfVision = new List <GameObject>(); soundsInHearing = new List <GameObject>(); knowObjInHearing = new List <GameObject>(); touchInTouch = new List <GameObject>(); knowObjInTouch = new List <GameObject>(); odorInSmell = new List <GameObject>(); knowObjInSmell = new List <GameObject>(); objectsInTaste = new List <GameObject>(); count = 0; SparqlEndPoint instanceSparql = SparqlEndPoint.getInstance(); // gets the instance for the singleton object instanceSparql.init(host, port); visionQueue = new Queue <GameObject>(); hearKnowQueue = new Queue <GameObject>(); hearUnkQueue = new Queue <GameObject>(); touchUnkQueue = new Queue <GameObject>(); touchKnowQueue = new Queue <GameObject>(); smellUnkQueue = new Queue <GameObject>(); atDateTime = DateTime.Now; Debug.Log("RHS>>> " + this.name + " is ready to receive request of Senses."); }
// Use this for initialization222 void Start() { robotVision = robot.GetComponent <VisionManager>(); robotSmell = robot.GetComponent <SmellManager>(); robotHearing = robot.GetComponent <HearingManager>(); robotTaste = robot.GetComponent <TasteManager>(); robotTouch = robot.GetComponent <TouchManager>(); locationsOnScene = new List <GameObject>(GameObject.FindGameObjectsWithTag(Constants.TAG_KNOWLOCATIONS)); commandsQueue = new Queue <Command>(); aI = robot.GetComponent <AgentInteraction>(); aM = robot.GetComponent <AgentMovement>(); hM = robot.GetComponent <AgentHeadMovement>(); sp = robot.GetComponent <AgentSpeech>(); locationsList = new List <GameObject>(locationsOnScene); Debug.Log("RHS>>> " + this.name + " ready."); }
void Start() { scm = simulatorManager.GetComponent <SimulatorCommandsManager>(); sm = simulatorManager.GetComponent <SensesManager>(); vision = scm.robot.GetComponent <VisionManager>(); smell = scm.robot.GetComponent <SmellManager>(); hearing = scm.robot.GetComponent <HearingManager>(); taste = scm.robot.GetComponent <TasteManager>(); touch = scm.robot.GetComponent <TouchManager>(); robotHProp = scm.robot.GetComponent <HearingProperties>(); uid = scm.GetComponent <UniqueIdDistributor>(); height = robotCamera.pixelHeight; width = robotCamera.pixelWidth; textVision = visionComponent.GetComponent <Text>(); textSmell = smellComponent.GetComponent <Text>(); textHearing = hearingComponent.GetComponent <Text>(); textTaste = tasteComponent.GetComponent <Text>(); textTouch = touchComponent.GetComponent <Text>(); textSpeech = speechComponent.GetComponent <Text>(); commandTextField = statusPanel.Find("CommandText").GetComponent <Text>(); statusTextField = statusPanel.Find("StatusText").GetComponent <Text>(); textTaste.text = ""; textVision.text = ""; textSmell.text = ""; textHearing.text = ""; textTouch.text = ""; textSpeech.text = ""; if (timePanel != null) { playButton = timePanel.Find("PlayButton").GetComponent <UnityEngine.UI.Button>(); pauseButton = timePanel.Find("PauseButton").GetComponent <UnityEngine.UI.Button>(); stopButton = timePanel.Find("StopButton").GetComponent <UnityEngine.UI.Button>(); //stopButton.interactable = false; pauseSimulation(); } Debug.Log("RHS>>> " + this.name + " is ready."); }