Hello
I am currently using kuka.sim 4.3
Is possible to access the name and print out the current tool mounted on the robot through the python script in the modelling tab. Could anyone please help with a demo script for it in kuka.sim - ideally to get the robot component and the current tool its mounted during the simulation running and if there is no tool attached to display None.
Link to setupimage -
image.png
Ideally, Want to expose this tool as a String property in the python program and then via opcua to an external system.
Any help will be appreciated
Thank you
Get current tool for robot in python script - expose to OPCUA connectivity
-
Varun Kumar -
July 16, 2024 at 5:30 PM -
Thread is Unresolved
-
-
The current version of KSim is based on Visual Components, AIUI. And this should be possible in VC: https://help.visualcomponents.com/4.8/Profession…vcComponent.htm
-
Thanks for the reply, really appreciate. I see vcComponent has a findBehaviour to get the "Tool" property in the robot but how do I access the actual name of the tool mounted
Could you give an example script that works in kuka.sim if possible? -
Could you give an example script that works in kuka.sim if possible?
I don't have (and never have had) KSim, so I can't. What little Python scripting I've done in VC has mostly been to control robots.
VC's website has a number of training videos on Python scripting, though, which would be a good place to start.