Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make the item rotate with the axis like the video?
#1
Like the video.
How can I use Python to simulate it.
Thanks a lot.
#2
Hi GTVision,

If your TCP is positioned in the center of the hole of the part attached to the flange and you know the XYZ position of the fixed tool, you can simply call some MoveLs with constant XYZ rx ry and simply modify the rz of the target.

Here's a link to our API documentation with some examples:
https://robodk.com/doc/en/PythonAPI/intro.html

Jeremy
Find useful information about RoboDK and its features by visiting our Online Documentation and by watching tutorials on our Youtube Channel


#3
[attachment=1562 Wrote:Jeremy pid='6865' dateline='1605625639']Hi GTVision,

If your TCP is positioned in the center of the hole of the part attached to the flange and you know the XYZ position of the fixed tool, you can simply call some MoveLs with constant XYZ rx ry and simply modify the rz of the target.

Here's a link to our API documentation with some examples:
https://robodk.com/doc/en/PythonAPI/intro.html

Jeremy

Hi Jeremy,
Thank you very much for your answers,sorry i don't have any programming foundation,I found a simple example and completed the attached video.

https://youtu.be/0h2fFx6gcg8

How can I make the rotation smoother?Thanks for the guidance.


Attached Files Thumbnail(s)
   
#4
Hi GTVision,

That's nice progress.
But your question is a good one.
You can try to use "setRounding" to smooth out the path.
I don't think it's possible to have a smooth movement that way.
The reason is simple, as is, the python script waits for the robot to finish its motion before calculating the next points. That automatically causes a stop between each point.
For smooth rounding, you need to have some points already program ahead of time.

Can you give a bit more explanation of exactly what you are trying to achieve?

Jeremy
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)