8#include "CoreMinimal.h"
9#include "Components/ActorComponent.h"
13#include "ROSIntegration/Classes/RI/Topic.h"
15#include "MovementSubscriber.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 UMovementSubscriber : public UActorComponent
44 UMovementSubscriber();
46 UPROPERTY(BlueprintAssignable)
47 FMessageReceived OnMessageReceived;
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(FMessageReceived, FMessageParser, Movement)