线程Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create frame with Python
#1
Hello, how could I create a loop in Python that would automatically build a frame at a distance "X" from one already created?
#2
Something like this would work:

Code:
from robodk import robolink # RoboDK API
从robodk进口robomath #机器人工具箱
RDK = robolink.Robolink()

max_frame = 10
y_motion = 100
frame_base = RDK.Item("Name of the robot base frame", robolink.ITEM_TYPE_FRAME)


for i in range(0,max_frame):
new_frame = RDK.AddFrame("Frame"+str(i),frame_base)
new_frame.setPose(robomath.Offset(frame_base.Pose(),0,y_motion*i,0,0,0,0))

Jeremy
Find useful information about RoboDK and its features by visiting ourOnline Documentationand by watching tutorials on ourYoutube Channel.






Users browsing this thread:
1 Guest(s)