Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
poppy-kine:poppy-kine-2016-s4 [2016/06/23 20:39] s4poppy2016 |
poppy-kine:poppy-kine-2016-s4 [2017/03/31 09:38] mai ↷ Page moved from poppy-kine-2016-s4 to poppy-kine:poppy-kine-2016-s4 |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{tag>Poppy Project}} | + | {{tag>Poppy Project poppy-kine}} |
====== Poppy-Kine : S4 project 2015-2016 ====== | ====== Poppy-Kine : S4 project 2015-2016 ====== | ||
Line 43: | Line 43: | ||
===== How to use our code ===== | ===== How to use our code ===== | ||
- | All the source code is located in the folder **C:/Utilisateurs/ihsev/Documents/projets4/newTest** | + | All the source code is located in the folder **C:/Utilisateurs/ihsev/Documents/projets4/redmine**, you can also get the code source via **https://redmine.telecom-bretagne.eu/projects/poppy-kine-2016-s4** |
+ | |||
+ | You can run our program by executing main.py(you can use PythonWin or PyCharm), and there are two inputs, for exemple, "16mai_slow_0.json bruit_0.json". The first is data of movement, and the second is a sample of noise.\\ | ||
+ | |||
+ | In the main.py (line 38), you can select the joints that you want, or comment the joints no needed.\\ | ||
+ | |||
+ | To see the results of the data filtered, you can change the parameter "debug" in the function "filter" as "filter()"(line69).\\ | ||
+ | |||
+ | You can also refer to Curve.py and calcules.py to see the method used for detecting the start and period.\\ | ||
+ | |||
+ | The number of cycles detected is showed by the output"number of cycles cutted", and the files cutted are saved in the foleder **C:/Utilisateurs/ihsev/Documents/projets4/redmine/filtered** | ||
+ | |||
+ | **Here is a synthesis of the files:**\\ | ||
+ | main.py : execute the program.\\ | ||
+ | Curve.py : contains the functions used for one curve(a joint, a dimension), functions : filter, detect the start and period.\\ | ||
+ | Data.py : contains the functions used to determine the global start and period for the movement, and cut the cycles into different files.\\ | ||
+ | calcules.py : contains the calculation of the transform FFT and the detection of start.\\ | ||
+ | filtrage.py : constitute a filter low-pass, and determine the cutoff frequency.\\ |