8#include "CoreMinimal.h"
9#include "Components/ActorComponent.h"
13#include "ROSIntegration/Classes/RI/Topic.h"
15#include "MovementSubscriber.generated.h"
28 UPROPERTY(BlueprintReadOnly)
31 UPROPERTY(BlueprintReadOnly)
34 UPROPERTY(BlueprintReadOnly)
40UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
41class AGRARSENSE_API UMovementSubscriber : public UActorComponent
47 UMovementSubscriber();
49 UPROPERTY(BlueprintAssignable)
50 FMessageReceived OnMessageReceived;
54 virtual void BeginPlay()
override;
56 virtual void OnUnregister()
override;
61 void ROSBridgeStateChanged(
EROSState rosState);
63 void CreateROSTopic();
65 void DestroyROSTopic();
68 TObjectPtr<UTopic> MovementTopic;
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FMessageReceived, FMessageParser, Movement)