I am using Kuka Sim Pro 3.0.5 add on.
My problem is that if I run my script, it breaks the Job Map and it does not execute anything there. Robot simply stops working. I get an output from my script. That’s it.
Here, my code:
from vcScript import *
from vcHelpers.Robot2 import *
from vcMatrix import *
def OnSignal( signal ):
pass
def OnRun():
robot = getRobot()
base = robot.Bases[8]
mtx = base.PositionMatrix
vec = mtx.P
print(vec.X)
print(vec.Y)
print(vec.Z)