My working environment is URSim 3.3.0.145 -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>
con.get_controller_version()
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 192.168.118.128 --port=30004
Complete!