Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite "Unknown package command: x" error #10

Open
sri331 opened this issue Mar 28, 2023 · 1 comment
Open

Infinite "Unknown package command: x" error #10

sri331 opened this issue Mar 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@sri331
Copy link

sri331 commented Mar 28, 2023

Hi team,

I am using latest RTDE version and running a program which moves the robot head to 165 different positions in a cylindrical pattern with a time delay of 10 seconds after moving to each position. I am using a thread that sends the watchdog for every second to make the connection active. The program is randomly going to infinite loop with the below error.

What could be the possible cause for the infinite loop ?Are we loosing the connection to the controller ? In that case can it be restored automatically ?

“Unknown package command: 0”

File "C:path\RTDE_Python_Client_Library-main\examples\interopTest_CircleTest.py", line 251, in
move_to_exHandle(con, setp, topCenter)
File "C:path\RTDE_Python_Client_Library-main\examples\interopTest_CircleTest.py", line 72, in move_to_exHandle
move_to(con, setp, new_setp)
File "C:path\RTDE_Python_Client_Library-main\examples\interopTest_CircleTest.py", line 85, in move_to
Cur_state = con.receive()
File "C:path\RTDE_Python_Client_Library-main\rtde\rtde.py", line 218, in receive
return self.__recv(Command.RTDE_DATA_PACKAGE, binary)
File "C:path\RTDE_Python_Client_Library-main\rtde\rtde.py", line 320, in __recv
data = self._on_packet(packet_header.command, packet)
File "C:path\RTDE_Python_Client_Library-main\rtde\rtde.py", line 273, in on_packet
log.error("Unknown package command: " + str(cmd))
File "C:\userPath\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 1506, in error
self.log(ERROR, msg, args, **kwargs)
File "C:\userPath\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 1624, in log
self.handle(record)
File "C:\userPath\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 1634, in handle
self.callHandlers(record)
File "C:\userPath\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 1704, in callHandlers
lastResort.handle(record)
File "C:\userPath\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 966, in handle
self.acquire()
File "C:\userPath\AppData\Local\Programs\Python\Python310\lib\logging_init
.py", line 917, in acquire
self.lock.acquire()

@michal-milkowski michal-milkowski added the bug Something isn't working label Jul 17, 2023
@michal-milkowski
Copy link
Member

hey @sri331 it's long time since it was reported, but I'd need more details. How often is receive called? What frequency do you set when initializing connection? What version of robot software are you using?
Looks like corrupted data sent by robot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants