rclUE
|
ROS2 Subscriber class. More...
#include <ROS2Subscriber.h>
Public Member Functions | |
virtual void | Destroy () override |
Destroy subscriber with rcl_subscriber_fini. More... | |
virtual void | ProcessReady () |
Determine the relevant subscriber functions to call. More... | |
void | SetDelegates (const FSubscriptionCallback &InCallback) |
Public Member Functions inherited from UROS2Topic | |
virtual bool | InitializeWithROS2 (UROS2NodeComponent *InROS2Node) |
Initialize Topic with ROS2Node. More... | |
virtual bool | Init () |
Initialize topic, InitializeMessage and InitializeTopicComponent. More... | |
virtual bool | InitializeMessage () |
Create TopicMessage instance and initialize it. More... | |
Static Public Member Functions | |
static UROS2Subscriber * | CreateSubscriber (UObject *InOwner, const FString &InTopicName, const TSubclassOf< UROS2GenericMsg > &InMsgClass, const FSubscriptionCallback &InCallback, const UROS2QoS InQoS=UROS2QoS::Default) |
Create a new UROS2Subscriber of custom type. More... | |
Public Attributes | |
FSubscriptionCallback | Callback |
Delegate which is Bound with #UpdateMessage by SetDelegates. More... | |
rcl_subscription_t | rcl_subscription |
ROS2 subscriber. | |
Public Attributes inherited from UROS2Topic | |
FString | TopicName |
this information is redundant with Topic, but it's needed to initialize it More... | |
TSubclassOf< UROS2GenericMsg > | MsgClass |
this information is redundant with Topic, but it's needed to initialize it More... | |
UROS2NodeComponent * | OwnerNode = nullptr |
ROS2Node which own this topic. More... | |
TEnumAsByte< UROS2State > | State = UROS2State::Created |
State. More... | |
UROS2QoS | QoS = UROS2QoS::Default |
Quality of service. More... | |
UROS2GenericMsg * | TopicMessage |
Message Instance. More... | |
Protected Member Functions | |
virtual void | InitializeTopicComponent () |
Initialize ROS2 Subscriber. More... | |
ROS2 Subscriber class.
UCLASS(ClassGroup = (Custom), Blueprintable, BlueprintType, meta = (BlueprintSpawnableComponent))
|
static |
Create a new UROS2Subscriber of custom type.
InTopicName | Topic name |
InMsgClass | Custom message type class |
InCallback | Callback function |
|
overridevirtual |
Destroy subscriber with rcl_subscriber_fini.
Reimplemented from UROS2Topic.
|
protectedvirtual |
Initialize ROS2 Subscriber.
Reimplemented from UROS2Topic.
|
virtual |
Determine the relevant subscriber functions to call.
void UROS2Subscriber::SetDelegates | ( | const FSubscriptionCallback & | InCallback | ) |
FSubscriptionCallback UROS2Subscriber::Callback |
Delegate which is Bound with #UpdateMessage by SetDelegates.