I occasionally get this error when working with the UR3 and RTDE.
This error is so annoying, because I cannot shutdown my program that called the rtde modules with ctrl+c
. I have to kill the process.
How can I avoid this?
.../rtde/rtde.py(190)__on_packet()
logging.error('Unknown package command: ' + str(cmd))
This is a traceback gathered from the debugger. Apparently it was caused when receiving the state:
state = self.socket.receive()
.../rtde/rtde.py(169)receive()
-> return self.recv(Command.RTDE_DATA_PACKAGE)
.../rtde/rtde.py(236)recv()
-> data = self.__on_packet(packet_header.command, packet)
.../rtde/rtde.py(190)__on_packet()
The error always occurs after establishing a new rtde connection and starting the data exchange.
It is returned in a loop and blocks everything.
Using pdb I found out that the cmd
was 0 and payload was also empty with b''
.
I send over force/torque data and fill up the float registers. I get back tcp_speed.
My version is 3.3.3.292 with a UR3.