04-10-2020, 07:53 AM
Hi,
I'm trying to run a command on the simulator software and i'm getting a timeout error:
The code:
The error:
I verified, and i'm running in simulation mode, and i do get a response from
and from other commands that are not movement commands.
Any idea? I'll be happily providing more information. Thanks!
I'm trying to run a command on the simulator software and i'm getting a timeout error:
The code:
Code:
import robolink as rlk # API to communicate with RoboDK for simulation and offline/online programming
import robodk as rdk # Robotics toolbox for industrial robots
from robolink.robolink import RUNMODE_SIMULATE, Robolink
RUN_MODE = RUNMODE_SIMULATE # Simulation behavior (simulate, or run on robot)
# Any interaction with RoboDK must be done through RDK:
RDK = Robolink()
RDK.setRunMode(RUN_MODE)
robot = RDK.ItemUserPick('Select a robot', rlk.ITEM_TYPE_ROBOT)
if not robot.Valid():
raise Exception('No robot selected or available')
robot.Pose()
home_target = RDK.Item("Home", rlk.ITEM_TYPE_TARGET)
robot.MoveJ(home_target)
The error:
Code:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<path>/venv/lib/python3.7/site-packages/robolink/robolink.py", line 4861, in MoveJ
self.link._moveX(target, self, 1, blocking)
File "<path>/venv/lib/python3.7/site-packages/robolink/robolink.py", line 952, in _moveX
self._check_status()
File "<path>/venv/lib/python3.7/site-packages/robolink/robolink.py", line 680, in _check_status
status = self._rec_int()
File "<path>/venv/lib/python3.7/site-packages/robolink/robolink.py", line 857, in _rec_int
buffer = self.COM.recv(4)
socket.timeout: timed out
I verified, and i'm running in simulation mode, and i do get a response from
Code:
robot.Pose()
Any idea? I'll be happily providing more information. Thanks!