Universal Robots Forum

RTDE: record.py fails with error - Copy error

My working environment is URSim -VMware.
I have tried to connect the RTDE and failed with the following symptoms.

ur@ursim:~/UR-RTDE-Client$ python --version
Python 2.7.6
ur@ursim:~/UR-RTDE-Client$ python record.py 
[TG] hostname :  localhost
[TG] port :  30004
Traceback (most recent call last):
  File "record.py", line 54, in <module>
  File "/home/ur/UR-RTDE-Client/rtde/rtde.py", line 90, in get_controller_version
    version = self.__sendAndReceive(cmd)
  File "/home/ur/UR-RTDE-Client/rtde/rtde.py", line 192, in __sendAndReceive
    return self.__recv(cmd)
  File "/home/ur/UR-RTDE-Client/rtde/rtde.py", line 226, in __recv
    packet_header = serialize.ControlHeader.unpack(self.__buf)
AttributeError: 'module' object has no attribute 'ControlHeader'

But When Windows7, It’s OK so robot_data.csv has been generated successfully.

D:\UR-RTDE-Client>python --version
Python 2.7.6

D:\UR-RTDE-Client>python record.py --host --port=30004

It is my mistake, rtde/serialize.py is copied as file size 0

Glad you resolved the issue. :smiley:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.