8#include "CoreMinimal.h"
9#include "Components/ActorComponent.h"
13#include "ROSIntegration/Classes/RI/Topic.h"
15#include "BoomMovementSubscriber.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 UBoomMovementSubscriber : public UActorComponent
44 UBoomMovementSubscriber();
46 UPROPERTY(BlueprintAssignable)
47 FBoomMessageReceived OnBoomMessageReceived;
51 virtual void BeginPlay()
override;
53 virtual void OnUnregister()
override;
58 void ROSBridgeStateChanged(
EROSState rosState);
60 void CreateROSTopic();
62 void DestroyROSTopic();
65 TObjectPtr<UTopic> BoomMovementTopic;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FBoomMessageReceived, FBoomMessageParser, Movement)