09-14-2023, 10:17 PM
I have an issue where if I run a Python script from within the station tree on the robot, it works as expected, yet if I attempt to run the same script from the Windows command line it does not work at all. I am using the latest version of RoboDK. The script is very simple:
When attempting to run from the command line I type:
Is someone please able to explain why it does not run from the command line?
Code:
from robodk.robolink import *
from robodk.robodialogs import *
from robodk.robomath import *
RDK = Robolink()
UR5 = RDK.Item('UR5', ITEM_TYPE_ROBOT)
wo_pt_maz_1 = [-2.02, -76.38, -149.96, -137.34, -47.08, -217.2]
UR5.MoveJ(RDK.Item('Home', ITEM_TYPE_TARGET), True)
UR5.MoveJ(wo_pt_maz_1, True)
When attempting to run from the command line I type:
Code:
C:\RoboDK\Python-Embedded>python c:\path-to-my-file\test_1.py
Is someone please able to explain why it does not run from the command line?