3#include "CoreMinimal.h"
8#include "GameFramework/Actor.h"
9#include "Kismet/GameplayStatics.h"
12#include "WeArtController.generated.h"
24static char messagesSeparator =
'~';
41 virtual void Initialize(FSubsystemCollectionBase& Collection)
override;
42 virtual void Deinitialize()
override;
44 UFUNCTION(BlueprintCallable)
45 void PauseController();
46 UFUNCTION(BlueprintCallable)
47 void UnpauseController();
48 UFUNCTION(BlueprintCallable)
49 void StartCalibration();
50 UFUNCTION(BlueprintCallable)
51 void StopCalibration();
53 void ScheduleController();
56 bool ReceiveMessages(std::vector<WeArtMessage*>& messages);
59 void StopConnection();
62 void LogError(
WeArtError error, FString& message);
64 void HandleReceivedMessage(FString& message);
81 bool ControllerAutoStart;
84 bool CalibrationAutoStart;
86 bool foundTrackingCalibration = false;
87 bool isCancellationRequested = false;
90 uint8* messageReceivedBuffer[1024];
91 std::
string trailingText;
92 bool IsConnected = false;
93 bool IsPaused = false;
WeArtError
Definition: WeArtController.h:20
@ ConnectionError
Definition: WeArtController.h:21
@ SendMessageError
Definition: WeArtController.h:21
@ ReceiveMessageError
Definition: WeArtController.h:21
WeArtMessageType
Definition: WeArtController.h:15
@ MessageReceived
Definition: WeArtController.h:16
@ MessageSent
Definition: WeArtController.h:16
Calibration status/result observer.
Definition: WeArtTrackingCalibration.h:21
Weart controller, used to connect to the Weart middleware, perform operations and receive messages.
Definition: WeArtController.h:31
AWeArtTrackingCalibration * TrackingCalibration
Definition: WeArtController.h:39
TArray< UWeArtThimbleTrackingObject * > thimbleTrackingObjects
Definition: WeArtController.h:70
Generic Weart message.
Definition: WeArtMessages.h:94
Serializer for communication with the middleware.
Definition: WeArtMessageSerializer.h:10