8#include "CoreMinimal.h"
9#include "Components/ActorComponent.h"
13#include "ROSIntegration/Classes/RI/Topic.h"
15#include "DroneMovementSubscriber.generated.h"
24 this->linear = { 0,0,0 };
25 this->angular = { 0,0,0 };
28 UPROPERTY(BlueprintReadOnly)
31 UPROPERTY(BlueprintReadOnly)
37UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
38class AGRARSENSE_API UDroneMovementSubscriber : public UActorComponent
44 UDroneMovementSubscriber();
46 UPROPERTY(BlueprintAssignable)
47 FDroneMessageReceived OnDroneMessageReceived;
51 virtual void BeginPlay()
override;
53 virtual void OnUnregister()
override;
58 void ROSBridgeStateChanged(
EROSState rosState);
60 void CreateROSTopic();
62 void DestroyROSTopic();
65 TObjectPtr<UTopic> MovementTopic;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FDroneMessageReceived, FDroneMessageParser, Movement)