unitreerobotics / unitree_ros_to_real

107 stars 94 forks source link

control_via_keyboard doesn't work #66

Open Peterxjerk opened 1 year ago

Peterxjerk commented 1 year ago

After entering the command "roslaunch unitree_legged_real keyboard_control.launch", the control loop is running. However, the getchar() function always returns -1 and the key "wsad" cannot change the value of the variable "ch". control_via_keyboard

vchint6 commented 1 year ago

Hello, Even I am facing same problem. did you find any solution?

Peterxjerk commented 1 year ago

You can ask chatgpt to help you solve this problem or modify your code according to https://github.com/unitreerobotics/unitree_ros_to_real/issues/50#issuecomment-1369425998

vchint6 commented 1 year ago

Thank you, now it works!