-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatacollector.h
47 lines (30 loc) · 1.04 KB
/
datacollector.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef __DATA__COLLECTOR__
#define __DATA__COLLECTOR__
#include <myo.hpp>
#include "controller.h"
class Controller;
class DataCollector : public myo::DeviceListener {
private:
Controller *controller;
int controlSystem;
bool systemUnlocked;
public:
DataCollector();
void initialize(Controller *control);
void onUnpair(myo::Myo* myo, uint64_t timestamp);
void onOrientationData(myo::Myo* myo, uint64_t timestamp, const myo::Quaternion<float>& quat);
void onPose(myo::Myo* myo, uint64_t timestamp, myo::Pose pose);
void onArmSync(myo::Myo* myo, uint64_t timestamp, myo::Arm arm, myo::XDirection xDirection, float rotation,
myo::WarmupState warmupState);
void onArmUnsync(myo::Myo* myo, uint64_t timestamp);
void onUnlock(myo::Myo* myo, uint64_t timestamp);
void onLock(myo::Myo* myo, uint64_t timestamp);
void print();
bool onArm;
myo::Arm whichArm;
bool isUnlocked;
int roll_w, pitch_w, yaw_w;
float roll, pitch, yaw;
myo::Pose currentPose;
};
#endif