You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@proppy -- I really like this in theory, but as soon as I started refactoring, I realized you would still need to make code changes to map the current game state to the new action (since wrist and forearm actions are specific to to the sign and game you're in). Not a huge deal, but as soon as I started writing the mapping I started to feel like it was getting a little convoluted.
Currently most of the gesture are hardcoded in https://github.com/Deeplocal/android-things-handbot/blob/master/app/src/main/java/com/example/sewl/androidthingssample/HandController.java as a series of functions call that translate to fixed angle for the servo controller:
https://github.com/Deeplocal/android-things-handbot/blob/master/app/src/main/java/com/example/sewl/androidthingssample/FingerController.java#L37
https://github.com/Deeplocal/android-things-handbot/blob/master/app/src/main/java/com/example/sewl/androidthingssample/ForearmController.java#L40
Instead you may want to consider encoded the gesture as data resources, so that it's more convenient to add new one without editing any code?
The text was updated successfully, but these errors were encountered: