{"id":20979496,"url":"https://github.com/josiahsrc/cs472-finger-motion","last_synced_at":"2025-07-24T20:35:51.945Z","repository":{"id":108234380,"uuid":"305003857","full_name":"josiahsrc/cs472-finger-motion","owner":"josiahsrc","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-08T19:34:14.000Z","size":29278,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-20T06:24:40.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/josiahsrc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-18T02:00:56.000Z","updated_at":"2020-12-08T19:34:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"7a6ffd58-b869-4342-9fc4-3b65a8813b3c","html_url":"https://github.com/josiahsrc/cs472-finger-motion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josiahsrc%2Fcs472-finger-motion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josiahsrc%2Fcs472-finger-motion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josiahsrc%2Fcs472-finger-motion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josiahsrc%2Fcs472-finger-motion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josiahsrc","download_url":"https://codeload.github.com/josiahsrc/cs472-finger-motion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243382933,"owners_count":20282050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T05:13:40.815Z","updated_at":"2025-03-13T10:15:08.033Z","avatar_url":"https://github.com/josiahsrc.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CS472 Finger Motion\n\nDrive a virtual character's motion based on your finger movement.\n\n## TODO\n\n- With walking data, make some amount of time for just standing\n- Slow down the walking animation, too fast for useful features, OR speed up the polling rate of the unity client\n\n## How to train your dragon\n\n1. Start up the brain\n\n```\npython main.py\n```\n\n2. Start the training interface in the client\n\n```\nWindow \u003e App \u003e Training Interface\n\n~Enter all the fields and set the dataframe asset~\n\nPress gather data and match up your hand motion to what appears in the animation\n```\n\n3. Open up your persistent data path were it saved the file. For more info on where your persistent data path is, check out the [unity docs](https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html).\n\n4. From there you can modify the `run_*.py` files to run your dataset.\n\n## How this project is setup\n\nThe project uses a client and a brain (server). The client uses the brain to predict output.\n\n**Client**\n\nThe virtual character simulator, built in Unity. It communicates with the python brain to drive the virtual character.\n\n**Brain**\n\nAll machine learning code. This package uses tensorflow to compute outputs.\n\n**Client to brain communication**\n\nThe client and brain each have two additional running threads\n- A response thread, which receives incoming packets\n- A request thread, which sends outgoing packets\n\nBoth the client and the brain run on their respective ports. The client will send and receive info from the brain via UDP.\n\n## Helpful commands\n\n**1. Netcat**\n\nThis command can be used to debug connections between the client and the server. \n\nSetup a listening server over UDP on your localhost's (127.0.0.1) 8080 port:\n\n```\nnc -u -lk 127.0.0.1 8080\n```\n\nSend a message to a server over UDP to your localhost's (127.0.0.1) 5065 port:\n\n```\nnc -u 127.0.0.1 5065 \u003c some_file.txt\n```\n\n**2. Conda**\n\nCreate the conda environment by navigating to the brain folder and downloading the dependencies from the `environment.yml` file.\n\n```\ncd brain\nconda env create -f environment.yml\n```\n\nActivate conda environment\n\n```\nconda activate tf-cpu\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosiahsrc%2Fcs472-finger-motion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosiahsrc%2Fcs472-finger-motion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosiahsrc%2Fcs472-finger-motion/lists"}