Exemplo n.º 1
0
 void Awake()
 {
     Robot    = GameObject.Find("RV_2A");
     Robot_jR = Robot.GetComponent <jointsRotate>();
     //*** Robot_jR.xxx : 即可取得jointsRotate.cs中的變數 xxx
     // Ex. Robot_jR.theta_tar
 }
Exemplo n.º 2
0
    float[] theta_user  = new float[] { 0, 0, 0, 0, 0, 0 };       //theta_tar -> targetAngle(PC) 的相對角度(中繼站)

    void Awake()
    {
        Robot    = GameObject.Find("RV_2A");
        Robot_jR = Robot.GetComponent <jointsRotate>();
        //*** Robot_jR.xxx : 即可取得jointsRotate.cs中的變數 xxx
        // Ex. Robot_jR.theta_tar

        joint1_a = GameObject.Find("Joint1_actual");
        joint2_a = GameObject.Find("Joint2_actual");
        joint3_a = GameObject.Find("Joint3_actual");
        joint4_a = GameObject.Find("Joint4_actual");
        joint5_a = GameObject.Find("Joint5_actual");
        joint6_a = GameObject.Find("Joint6_actual");
        endEff_a = GameObject.Find("end_effector_actual");
    }
Exemplo n.º 3
0
    void Awake()
    {
        //抓取手把上面的組件
        trackdeObjec = GetComponent <SteamVR_TrackedObject> ();

        Robot     = GameObject.Find("RV_2A");
        Robot_jR  = Robot.GetComponent <jointsRotate>();
        Robot_a   = GameObject.Find("RV_2A_actual");
        Robot_jRa = Robot_a.GetComponent <Client>();

        CtrlTxt = GameObject.Find("ControllerInstruction");

        //padtxt = GameObject.Find("Text_Pad").GetComponent<TextMesh>();
        //triggertxt = GameObject.Find("Text_Trigger").GetComponent<TextMesh>();
        sendBtn = GameObject.Find("TouchPad_play");
    }
Exemplo n.º 4
0
 void Awake()
 {
     endEff   = GameObject.Find("end_effector");
     Robot    = GameObject.Find("RV_2A");
     Robot_jR = Robot.GetComponent <jointsRotate>();
 }