VGetEdgeRobotXYU Method

Description
Retrieves robot X, Y, and U physical coordinates for each edge of a Line Finder, Arc Finder search.

Syntax
Sub VGetEdgeRobotXYU (Sequence As String, Object As String, EdgeResultIndex As Integer, ByRef Found As Boolean, ByRef X As Single, ByRef Y As Single, ByRef U As Single)

Parameters

  • Sequence
    A string expression indicating the vision sequence name for the current project.
  • Object
    A string expression indicating the object name for the sequence.
  • EdgeResultIndex
    An integer expression indicating the edge result index.
  • Found
    A Boolean variable indicating whether the object was found.
  • X
    A real number variable indicating the X coordinate in millimeters.
  • Y
    A real number variable indicating the Y coordinate in millimeters.
  • U
    A real number variable indicating the angle in degrees.

See Also
VGetEdgeCameraXYU Method, VGetEdgePixelXYU Method, VGetPixelXYU Method, VGetRobotXYU Method

VGetEdgeRobotXYU Example
VB Example:

Dim found(10) As Boolean  
Dim x(10) As Single, y(10) As Single, u(10) As Single  
Dim seq As String, lineFinder As String  
  
seq = "testSeq"  
lineFinder = "LineFind01"  
m_spel.VRun(seq)  
' The NumberOfEdges for the LineFinder is 10  
For i = 1 To 10  
m_spel.VGetEdgeRobotXYU(seq, lineFinder, i, found(i), x(i),  
   y(i), u(i))  
Next i  

C# Example:

bool[] found = new bool[11];  
float[] x = new float[11];  
float[] y = new float[11];  
float[] u = new float[11];  
string seq, lineFinder;  
seq = "testSeq";  
lineFinder = "LineFind01";  
m_spel.VRun(seq);  
// The NumberOfEdges for the LineFinder is 10  
for(int i = 1; i <= 10; i++)  
m_spel.VGetEdgeRobotXYU(seq, lineFinder, i, out found[i],  
      out x[i], out y[i], out u[i]);