// Start is called before the first frame update void Start() { experimentManager = GameObject.Find("Manager").GetComponent <ExperimentManager>(); roomba = GameObject.Find("Manager").GetComponent <RoombaControllerScript>(); controller = GameObject.FindGameObjectWithTag("Controller").GetComponent <VIVEController>(); rb = this.GetComponent <Rigidbody>(); initialPos = GameObject.Find("Target").transform.position; }
// Start is called before the first frame update void Start() { roomba = this.GetComponent <RoombaControllerScript>(); manager = GameObject.Find("Manager").GetComponent <ExperimentManager>(); controller = GameObject.FindGameObjectWithTag("Controller"); VC = controller.GetComponent <VIVEController>(); VE = controller.GetComponent <VelocityEstimator>(); }
// Use this for initialization void Start() { c2 = GameObject.Find("Roomba").GetComponent <RoombaControllerScript>(); //distance = 0; start1 = false; //target = new Vector3(target1.transform.position.x, 0, target1.transform.position.z); //target_Roomba = FindRoomba(target, Vector3.forward,roomba_distance); rend = wall.GetComponent <Renderer>(); s_serial = new SerialPort(portName, portSpeed); try { s_serial.Open(); } finally { } }
// Use this for initialization void Start() { c2 = GameObject.Find("Roomba").GetComponent <RoombaControllerScript>(); }
public float err_velocity;// acceptable error of the velocity // Use this for initialization void Start() { roomba_basic_controller = GameObject.Find("Roomba").GetComponent <RoombaControllerScript>(); }
void Awake() { Instance = this; }