unitreerobotics / unitree_legged_sdk

SDK tools for control robots.
BSD 3-Clause "New" or "Revised" License
294 stars 163 forks source link

UDP Port for Go1 Low Level Control #87

Open anahrendra opened 1 year ago

anahrendra commented 1 year ago

For v.3.8.6 of the Go1 SDK, In the example for C++, the local port for UDP used is 8090, while for the Python example is 8080. Which one should I use? I am afraid it may cause connection problems in the future.

Additionally, I am experiencing a weird behavior. When I set a static IP in my external PC for connecting with Go1 to 192.168.123.115, the UDP returns no message. However, when I switch the IP to 192.168.123.10, and then revert back to 192.168.123.115, the connection was established. I this a bug, or did I miss something here?

Note: I always use 192.168.123.115 for connecting to A1 with the same PC, and there is no such problem

Thanks in advance for your assistance!

xyq1223 commented 1 year ago

Hello! For the first question, does it not work when using the default settings? The second question, according to the network framework of the Go1 robot, it is possible to set 192.168.123.115 for the external computer. Did you ensure that it takes effect after setting it?