unitreerobotics / unitree_sdk2_python

Python interface for unitree sdk2
BSD 3-Clause "New" or "Revised" License
63 stars 31 forks source link

[ClientStub] send request error. #6

Closed Lin-jun-xiang closed 4 months ago

Lin-jun-xiang commented 4 months ago

Problem

The client error cause from: https://github.com/unitreerobotics/unitree_sdk2_python/blob/bd24b5be05b67eb044ebcec9f35d0698040b5360/unitree_sdk2py/rpc/client_stub.py#L50-L55

I have used debug mode, then find the self.___publication_matched_count is 0 which cause the client error.

https://github.com/unitreerobotics/unitree_sdk2_python/blob/bd24b5be05b67eb044ebcec9f35d0698040b5360/unitree_sdk2py/core/channel.py#L129-L140

However, I have no idea why the self.___publication_matched_count is 0.


Environment

shy114514 commented 2 months ago

Hi, I met the same problem. Could you please tell me how you solved the problem?

BeNavon commented 5 hours ago

Problem

  • Using the unitree app API mode to connect the go2 to the same Wi-Fi as the computer. The network card name is set as Wi-Fi which get by ipconfig>> InterfaceAlias: Wi-Fi.
  • When running example/helloworld/, the publisher and subscriber work smoothly and produce the expected results.
  • However, when executing test.StandDown(), an error occurs with the message "[ClientStub] send request error. id=xxx".

I have used debug mode, then find the self.___publication_matched_count is 0 which cause the client error.

https://github.com/unitreerobotics/unitree_sdk2_python/blob/bd24b5be05b67eb044ebcec9f35d0698040b5360/unitree_sdk2py/core/channel.py#L129-L140

Hi @Lin-jun-xiang , I'm trying to run the high-level control example go2_sport_client.py using the unitree_mujoco simulation and specifying the network interface lo. I encountered the same error message you've mentioned: [ClientStub] send request error. id: 252906806156372 Did you figure out how to solve it?