RapyutaSimulationPlugins
RRROS2ClockPublisher.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 
16 
17 // UE
18 
19 #include "Containers/Ticker.h"
20 
21 #include "CoreMinimal.h"
22 
23 
24 
25 // rclUE
26 
27 #include "ROS2Publisher.h"
28 
29 
30 
31 #include "RRROS2ClockPublisher.generated.h"
32 
33 
34 
48 class RAPYUTASIMULATIONPLUGINS_API URRROS2ClockPublisher : public UROS2Publisher
49 
50 {
51 
52 
53 
54 public:
55 
57 
58 
59 
68  virtual bool Init() override;
69 
70 
71 
72 protected:
73 
75 
76  FTickerDelegate TickDelegate;
77 
78 
79 
81 
82  FTSTicker::FDelegateHandle TickDelegateHandle;
83 
84 
85 
98  bool Tick(float DeltaSeconds);
99 
100 };
101 
URRROS2ClockPublisher::TickDelegate
FTickerDelegate TickDelegate
Delegate for callbacks to Tick.
Definition: RRROS2ClockPublisher.h:76
URRROS2ClockPublisher
Clock publisher class. Get elapsed time by UGameplayStatics.
Definition: RRROS2ClockPublisher.h:48
URRROS2ClockPublisher::TickDelegateHandle
FTSTicker::FDelegateHandle TickDelegateHandle
Handle to various registered delegates.
Definition: RRROS2ClockPublisher.h:82