Low-Level C++ SDK  v1.3.0
Loading...
Searching...
No Matches
WeArtTrackingCalibration.h
Go to the documentation of this file.
1#pragma once
2#include "WeArtCommon.h"
4#include <functional>
5
8public:
10
12 return currentHand;
13 }
14
16 return status;
17 }
18
19 bool getResult() {
20 return result;
21 }
22
25 void AddStatusCallback(std::function<void(HandSide, CalibrationStatus)> callback);
26
29 void AddResultCallback(std::function<void(HandSide, bool)> callback);
30
31private:
32 void OnMessageReceived(WeArtMessage* message) override;
33
34 HandSide currentHand;
35 CalibrationStatus status;
36 bool result;
37
38 std::vector<std::function<void(HandSide, CalibrationStatus)>> statusCallbacks;
39 std::vector<std::function<void(HandSide, bool)>> resultCallbacks;
40};
CalibrationStatus
Definition: WeArtCommon.h:55
HandSide
Definition: WeArtCommon.h:17
Message Listener basic interface.
Definition: WeArtMessageListener.h:9
Calibration status/result observer.
Definition: WeArtTrackingCalibration.h:7
void AddStatusCallback(std::function< void(HandSide, CalibrationStatus)> callback)
Adds a callback for calibration status update.
Definition: WeArtTrackingCalibration.cpp:6
void AddResultCallback(std::function< void(HandSide, bool)> callback)
Adds a callback for calibration result.
Definition: WeArtTrackingCalibration.cpp:10
CalibrationStatus getStatus()
Definition: WeArtTrackingCalibration.h:15
HandSide getCurrentHand()
Definition: WeArtTrackingCalibration.h:11
WeArtTrackingCalibration()
Definition: WeArtTrackingCalibration.cpp:3
bool getResult()
Definition: WeArtTrackingCalibration.h:19