All software can now be publicly accessed at https://github.com/Carter-eng/SpotMicroQuadruped. This week I found much progress in software.To begin with, I solved the import issues I mentioned last time. The problem came about because the "on_press" function that is built into pynput only receives only the input "key" from the keyboard. A big limitation is that I did not have access to the "self" reference for the global variables that exist in the class. I solved this by moving the "on_press" listener function to the main script to run the robot "run_robot.py". The main script then reports the current key as an input to the function from the keyboard controller script which, as a custom function, gives me greater control over the input. |
img-2648__1_.mov | |
File Size: | 8146 kb |
File Type: | mov |