silvery107 / rl-mpc-locomotion

Deep RL for MPC control of Quadruped Robot Locomotion
https://docs.google.com/presentation/d/18bznpYrkCPnhCisySPDz18hvL3Ytere7JiJEbdLvpgU/edit?usp=sharing
MIT License
417 stars 47 forks source link

not using the Xbox-like but keyboard #21

Open zhshubs opened 2 weeks ago

zhshubs commented 2 weeks ago

how to solve the problem

silvery107 commented 2 weeks ago

You can check gamepad_reader.py and use the same library to read your keyboard inputs and map to corresponding commands.

Welcome to open a PR for that once you solve it!

zhshubs commented 2 weeks ago

As you say, I check gamepad_reader.py and use the same lib to read my keyboard inputs, but it cant not map to corresponding commands. I am sure read my keyboard inputs successfully but can not control the robot in sim. Just modifying codes in gamepad_reader.py?

silvery107 commented 2 weeks ago

Could you be more specific by "it cant not map to corresponding commands"? What fields did you fill in with the keyboard inputs ingamepad_reader.py and what's the entry script of your "robot in sim" (like RL_MPC_Locomotion.py)?