Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Location of end-effector TCP

#1
What is the command in Python or Matlab to retrieve the location of the TCP?
#2
Hi,

In Python, PoseTool() will give you the position of TCP with respect to Robot Flange. I recommend you to go through the documentation here: https://robodk.com/doc/en/PythonAPI/robolink.html


Code:
from robolink import *    # RoboDK API
from robodk import *      # Robot toolbox
RDK = Robolink()


robot = RDK.Item('robot')
mat_pose = robot.PoseTool()
print(mat_pose)
#3
(04-08-2021, 09:44 PM)Vineet Wrote: Hi,

In Python, PoseTool() will give you the position of TCP with respect to Robot Flange. I recommend you to go through the documentation here: https://robodk.com/doc/en/PythonAPI/robolink.html


Code:
from robolink import *    # RoboDK API
from robodk import *      # Robot toolbox
RDK = Robolink()


robot = RDK.Item('robot')
mat_pose = robot.PoseTool()
print(mat_pose)

Thank you!
  




Users browsing this thread:
1 Guest(s)