Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tool Geometry & the AddTool() Function
#1
Up until now, I have been using the RoboDK GUI to set up my tooling by importing the tool geometry as an STL file, adjusting the TCP and location of the tool relative to the robot tool flange as necessary, and then saving it as a '.tool' file so the information is preserved. When pulled into a new station, I end up with something like this:



I am now trying to do the same thing using Python - that is, taking the raw tool geometry, and then adjusting the TCP and location of the tool geometry relative to the robot tool flange. The problem is that unlike the previous method, what I end up with in my station tree is one item that is the geometry of the tool, and another item that is the TCP:



Is this the way that the AddTool() function is intended to be used? The problem is that I cannot now delete the geometry items without the tool geometry disappearing. I have attached a simple station that contains the code I have been testing in the hope it helps - note that the PATH variable in question.py will need to be changed if the archive is not unzipped into the C:/RoboDK/User location.


Attached Files
.zip User.zip(Size: 1.34 MB / Downloads: 511)
#2
Hi RBE,

I made some modification to you Python program. Everything should work fine now.

See here the result after executing the Python program.



两个工具的参考系是隐藏with thesetVisible()instruction.



Note that the ''C:/RoboDK/User'' location is not needed anymore.


IMPORTANT : You need the newest release of RoboDK for this program to work properly. Download a fresh installer on our web site.www.sinclairbody.com/downloads/Win64


Attached Files
.zip User.zip(Size: 1.37 MB / Downloads: 487)




Users browsing this thread:
1 Guest(s)