VGetPixelToRobot Method

Description
Retrieves robot world coordinates for the specified pixel coordinates.

Syntax
Sub VGetPixelToRobot (Calibration As String, PixelX As Single, PixelY As Single, Angle As Single, ByRef RobotX As Single, ByRef RobotY As Single, ByRef RobotU As Single)

Parameters

  • Calibration
    A string expression indicating the calibration name for the current project.
  • PixelX
    A real number variable indicating the X coordinate in pixels.
  • PixelY
    A real number variable indicating the Y coordinate in pixels.
  • Angle
    A real number variable indicating the angle in degrees.
  • RobotX
    A real number variable indicating the X coordinate in millimeters.
  • RobotY
    A real number variable indicating the Y coordinate in millimeters.
  • RobotU
    A real number variable indicating the angle in degrees.

See Also
VGetPixelXYU Method, VGetRobotXYU Method, VGetPixelToCamera Method

VGetPixelToRobot Example
VB Example:

Dim x As Single, y As Single, u As Single  
Dim cal As String, seq As String  
  
cal = "testCal"  
seq = "testSeq"  
m_spel.VRun(seq)  
m_spel.VGetPixelToRobot(cal, 400, 300, 0, x, y, u)  

C# Example:

float x, y, u  
string cal, seq;  
  
cal = "testCal";  
seq = "testSeq";  
m_spel.VRun(seq);  
m_spel.VGetPixelToRobot(cal, 400, 300, 0, out x, out y, out u);