Base class for vector used in wrapper. Should use the derived classes.
Beispiel #1
0
 public bool defineVector(SIRVector sir)
 {
     return _wrapper.defineVectorWrapped(Wrapper.enumAxisSettings.AXIS_ROBOT, sir.Name, (short) sir.getSize());
 }
Beispiel #2
0
 public bool teach(SIRVector vector)
 {
     return _wrapper.teachWrapped(vector);
 }
Beispiel #3
0
        public bool teachWrapped(SIRVector vecTheSirVector)
        {
            int iReturn;
            for (short i = 0; i < vecTheSirVector.getSize(); i++)
            {
                VecPoint pTmp = vecTheSirVector.getPoint(i);
                int x, y, z, pitch, roll;
                x = pTmp.iX;
                y = pTmp.iY;
                z = pTmp.iZ;
                pitch = pTmp.iPitch;
                roll = pTmp.iRoll;
                int[] iArray = new int[]{x, y, z, pitch, roll};

                iReturn = _dll.Teach(vecTheSirVector.Name, (short)(i+1), iArray, 5, vecTheSirVector.Type);
                if (iReturn == 0)
                    return (false);
            }
            return (true);
        }