I try to move a robot in joint position mode with the Python API.
Code looks like this:
from vcScript import *
from vcHelpers.Robot import *
def OnRun():
robot = getRobot()
robot.driveJoints(0,0,0,0,0,0)
robot.Controller.moveJoint(2,90)
However, I can’t find the class:
Error: vcHelpers.Robot was unable to find controller in component "
NeueKomponente ".
Traceback (most recent call last):
File “NeueKomponente::PythonScript”, line 6, in OnRun
AttributeError: ‘NoneType’ object has no attribute ‘driveJoints’
Any idea? In worked well in the old 2014 version.
vcRobotcontroller.vcmx (70.5 KB)