12-04-2024, 10:14 AM
Hello
I asked about this in another thread, but now that I know more about it I'll report it here.
Sorry for the multiple posts
After calling Connect() without connecting to a robot, An error occurs when using setPoseTool().
I've included the code and Project below, so check it out.
Please let me know how to avoid this error
I asked about this in another thread, but now that I know more about it I'll report it here.
Sorry for the multiple posts
After calling Connect() without connecting to a robot, An error occurs when using setPoseTool().
I've included the code and Project below, so check it out.
Please let me know how to avoid this error
Code:
from robodk import robolink # RoboDK API
from robodk import robomath # Robot toolbox
from robodk import * # RoboDK API
from robolink import * # Robot toolbox
RDK = robolink.Robolink()
robot = RDK.Item("Yasakawa GP50")
tool = RDK.Item("FLANGE")
robot.setPoseTool(tool)
robot.Connect()
robot.Disconnect()
robot.setPoseTool(tool)
Code:
WARNING: Robot connection problem: Connection problems
Traceback (most recent call last):
File "c:\Users\xxxx\AppData\Local\Temp\Prog1.py", line 23, in <module>
robot.setPoseTool(tool)
File "C:\RoboDK\Python\robodk\robolink.py", line 5555, in setPoseTool
self.link._check_status()
File "C:\RoboDK\Python\robodk\robolink.py", line 835, in _check_status
raise Exception(self.LAST_STATUS_MESSAGE)
Exception: Robot connection timed out: Connection problems