unitreerobotics / unitree_legged_sdk

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

3.8.0 Python examples not reading UDP state information #61

Open MulkerinG opened 1 year ago

MulkerinG commented 1 year ago

When running the default python examples, the information from the received state is being read as all zeros. Originally I just uncommented the given print functions in the code and all motionstate variables were zero, to make sure this wasn't simply a motionstate object problem I also added the line for the imu temperature. The following image is the results.

image

The Robot is running the commands from the script fine but I would like to use some of this information for logging purposes. Is there a setting I am missing or is this not currently possible with the python examples?

JonasFovea commented 1 year ago

How are you connected (Wi-fi/Ethernet) and which IP are you using to address the robot?

xyq1223 commented 1 year ago

If you are using wifi to connect to the robot dog, you should change the IP in the code to 12.1 If you are using a network cable to connect to the robot dog, there is no need to change the code (and the default IP address,163.121)