コード例 #1
0
    // 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;
    }
コード例 #2
0
    // 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>();
    }
コード例 #3
0
    // 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
        {
        }
    }
コード例 #4
0
    // Use this for initialization


    void Start()
    {
        c2 = GameObject.Find("Roomba").GetComponent <RoombaControllerScript>();
    }
コード例 #5
0
 public float err_velocity;// acceptable error of the velocity
 // Use this for initialization
 void Start()
 {
     roomba_basic_controller = GameObject.Find("Roomba").GetComponent <RoombaControllerScript>();
 }
コード例 #6
0
 void Awake()
 {
     Instance = this;
 }