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

REQUEST TO ADD RELATIVE MOVE

#1
I would like to request that the "apply relative move" button be exposed to the Python API. Please see screenshot in attachment.

Thanks!


Attached Files Image(s)
   
#2
This should be simple using the Python API and some math.

For example, the following code applies an offset of [100,200,300] mm along [X,Y,Z] coordinates.
Code:
# Define your relative move as an XYZABC offset
pose_delta = KUKA_2_Pose([100,200,300,0,0,0])

# get the current object pose:
pose = m1.Pose()
new_pose = pose * pose_delta

# update the new pose:
m1.setPose(new_pose)
#3
Thanks, Albert! That works.
  




Users browsing this thread:
1 Guest(s)