I’ve recently been trying to receive robot readings from port 30002 using Sockets in Python. I’ve looked into how to process the package received in this thread here:
But the code examples posted are outdated and leaves me with errors.
I’ve also looked into the client_Interfaces.xlsx, but it seems to be outdated perhaps too?
Anyways, i am trying to receive readings on the Robot mode data, more specifically to check for protective stop.
How would i go about processing the package with the Struct librabry in python 3?
Or if someone could explain to me how to unpack the data stream from port 30002 that would be of great help too!
Hi, could you share it? I have been going through the same issue and I updated some indices, but it still does not work for me.
A link to a repository in GitHub or similar would be great
It’s around 3 months since i’ve last used the script, so i quiet frankly don’t remember how exactly i got it to work. I don’t have an active repo with the code, but here is the code snippet.
As far as i can remember,it prints the 3 states; is_program_running, is_protective_stopped, is_robot_on.