Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VB.NET Setting pose UR10e [FIXED]
When I try and set a pose for the UR10e it does not move to the correct rpw.
"Dim testPoint As Mat = Mat.transl(x, y, z) * Mat.rotx(Deg_to_Rad(i)) * Mat.roty(Deg_to_Rad(j)) * Mat.rotz(Deg_to_Rad(k))" 
is the Matrix that I am trying to set the pose to. It works if one of the numbers is different than 0, but not if multiple are different than 0.
Thank you for any help!

Private Function Deg_to_Rad(deg As Double) As Double
    Return ((deg * Math.PI) / 180)
End Function

Dim moveTo As Double() = {x, y, z, Deg_to_Rad(i), Deg_to_Rad(j), Deg_to_Rad(k)}
Dim testPoint As Mat = Mat.URToPose(moveTo)

This will allow the robot to move to a point and then set a target, this will let you set the XYZ and RPW.
Pretty good job.

Up voted!

Users browsing this thread:
1 Guest(s)