autorope / donkeycar

Open source hardware and software platform to build a small scale self driving car.
http://www.donkeycar.com
MIT License
3.16k stars 1.3k forks source link

Record behavior dataset without joystick #610

Open AlexKaravaev opened 4 years ago

AlexKaravaev commented 4 years ago

I want to record dataset without ps4 joystick, however from the code, I think it is possible to switch states only from joystick button, or there are some other ways to do that?

Ezward commented 1 year ago

We are refactoring how we deal with the game controllers; pulling hard-coded behavior out of the joystick code and moving it into parts and then allowing mapping of controller events to run these parts. For instance you will be angle to define which button changes the user/autopilot mode or change which button toggles recording. So we should pull out the code that stitches states in a behavioral model so they can be mapped to controller buttons. Note we have also added programmable buttons to the webui.