11
11
12
12
// clang-format -i *.h
13
13
14
- #include " ../puara_gestures.h"
15
-
16
- #include < ossia/network/generic/generic_device.hpp>
17
- #include < ossia/network/osc/osc.hpp>
18
-
19
14
#include < ossia/network/base/parameter_data.hpp>
20
15
#include < ossia/network/common/debug.hpp>
16
+ #include < ossia/network/generic/generic_device.hpp>
17
+ #include < ossia/network/osc/osc.hpp>
18
+ #include < puara/gestures.h>
21
19
20
+ #include < chrono>
22
21
#include < iostream>
23
22
#include < sstream>
24
-
25
- #include < vector>
26
- #include < chrono>
27
23
#include < thread>
28
- #include " ../descriptors/IMU_Sensor_Fusion/imu_orientation.h "
24
+ #include < vector >
29
25
30
26
std::string client_ip = " 127.0.0.1" ;
31
27
int client_port = 9000 ;
@@ -42,10 +38,6 @@ puara_gestures::Shake3D shake;
42
38
puara_gestures::Jab3D jab;
43
39
puara_gestures::utils::LeakyIntegrator leakyintegrator;
44
40
IMU_Orientation orientation;
45
- puara_gestures::testing_roll rollTest;
46
- puara_gestures::testing_tilt tiltTest;
47
-
48
- #include < vector>
49
41
50
42
// struct Coord3D {
51
43
// double x, y, z;
@@ -75,13 +67,12 @@ int main(int argc, char* argv[]) {
75
67
leakyintegrator.integrate (accelerometer[0 ]);
76
68
});
77
69
78
- // rollTest.test();
79
- tiltTest.test ();
80
-
81
- // while(true) {
82
- // puara_gestures::Coord3D shakeout = shake.current_value();
83
- // puara_gestures::Coord3D jabout = jab.current_value();
84
- // std::cout << "Shake X: " << shakeout.x << ", Jab X: " << jabout.x << ", Integrator: " << leakyintegrator.current_value << std::endl;
85
- // std::this_thread::sleep_for(std::chrono::milliseconds(10));
86
- // };
70
+ while (true )
71
+ {
72
+ puara_gestures::Coord3D shakeout = shake.current_value ();
73
+ puara_gestures::Coord3D jabout = jab.current_value ();
74
+ std::cout << " Shake X: " << shakeout.x << " , Jab X: " << jabout.x
75
+ << " , Integrator: " << leakyintegrator.current_value << std::endl;
76
+ std::this_thread::sleep_for (std::chrono::milliseconds (10 ));
77
+ };
87
78
}
0 commit comments