Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Timeout error when running robot.MoveJ in simulation mode (MacOS)

#1
Hi,
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()
and from other commands that are not movement commands.

Any idea? I'll be happily providing more information. Thanks!
#2
Can you provide the RoboDK project file?
#3
(04-10-2020, 11:05 AM)Albert Wrote: Can you provide the RoboDK project file?

Thanks for getting back to me - for some reason i didn't get a notification :|

Here is a minimized version of the RoboDK project file.


Attached Files
.rdk   20200411_for_forum_question.rdk (Size: 928.32 KB / Downloads: 402)
  




Users browsing this thread:
1 Guest(s)