-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Times out after 10s #6
Comments
Got the same issue here, ended up calling |
You're both right, after starting connection controller will send rt data, and python client is expected to read it. I'll add a line in documentation (as minimum). |
I'm thinking about either adding an example with thread specifically for reading socket, or adding a method to library that clears receive buffer. Method would need to be called periodically. |
They both sound pretty useful. Could we have both? BTW this is how I solved it. Not very elegant, but I'm not latency sensitive.
|
That makes a lot of sense. What would be the use case for ignoring incoming data? |
Some things are only accessible by rtde (like the registers and joints), so I have to use it even though I don't need its realtime nature. I did consider using a thread to keep it drained, but python's global interpreter lock and making sure I got setup/teardown right dissuaded me. |
A method clearing the whole buffer would be quite interesting, but the thread fulfills a different purpose imo so as @jason-cso mentioned having both would not feel redundant. Doing it cleanly with a thread certainly takes more effort though. |
I am trying to add a thread to handle connection lost issue but not successful ... Could you share sample code for the thread you implemented? |
Something similar to what we had would be:
|
I am running into smiliar (but different) 10 sec timeout issue. Here is the scenario: Did anyone tried to run rtde controller solution as a service, and was sucessful ? |
Thanks gsim-inbolt . The thread is useful. I am not sure if rtde class is thread safe not resulting in race condition. I am using a thread to make the connection active but some times it is giving below issue and going to infinite loop. |
Seems like RTDE expects you to poll it continuously after you connect if you want fresh data. It'd be good if that was clearly called out in the docs.
If I do this:
I get errors like
received 0 bytes from Controller, probable cause: Controller has stopped
orreceived 0 bytes from Controller
. Also, I'll often get two stale messages before it notices the disconnect.The text was updated successfully, but these errors were encountered: