Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object continuous move
#1
Hi, I would like to create a simple program using python where an "object" (e.g., a cube) continuously moves within the scene with respect to the robot base frame. I will provide time to time the coordinates of this object. Could you kindly provide where I can find some examples to develop such kind of program or an example of code?
This is the simple code I am using but it returns an error on the last instruction:

# Program:

cube = RDK.Item('Cube 100mm')
print("cube pose is ", Pose_2_UR(cube.PoseAbs()))
new_position=Pose_2_UR([100,0.0,0.0,0.0,0.0,0.0])
cube.setPoseAbs(new_position)

Thank you in advance.
EM
#2
You can find examples in our Pytohn API Documentation:
https://robodk.com/doc/en/PythonAPI/examples.html
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our YouTube Channel.
  




Users browsing this thread:
1 Guest(s)