コード例 #1
0
        private void init()
        {
            try
            {
                rp = new RobotPostureProxy(ip, 9559);
                rp.goToPosture("StandZero", 1);
            }
            catch (Exception)
            {
                throw new Exception("Cannot connect to Proxy");
            }

            try
            {
                mp = new MotionProxy(ip, port);
            }
            catch (Exception)
            {
                throw new Exception("Cannot connect to Proxy");
            }


            RArm = new Arms();
            LArm = new Arms();
        }
コード例 #2
0
ファイル: NaoHandler.cs プロジェクト: kinectNao/rednao
        private void init()
        {
            try
            {

                rp = new RobotPostureProxy(ip, 9559);
                rp.goToPosture("StandZero", 1);

            }
            catch (Exception)
            {

                throw new Exception("Cannot connect to Proxy");
            }

            try
            {
                mp = new MotionProxy(ip, port);
            }
            catch (Exception)
            {

                throw new Exception("Cannot connect to Proxy");
            }

            RArm = new Arms();
            LArm = new Arms();
        }