rclUE
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
UROS2Topic Class Reference

ROS2 topic class. Parent class of UROS2Publisher and UROS2Subscriber. More...

#include <ROS2Topic.h>

Inheritance diagram for UROS2Topic:
Inheritance graph
[legend]
Collaboration diagram for UROS2Topic:
Collaboration graph
[legend]

Public Member Functions

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...
 
virtual void Destroy ()
 Destroy topic and TopicMessage. More...
 

Public Attributes

FString TopicName
 this information is redundant with Topic, but it's needed to initialize it More...
 
TSubclassOf< UROS2GenericMsgMsgClass
 this information is redundant with Topic, but it's needed to initialize it More...
 
UROS2NodeComponentOwnerNode = nullptr
 ROS2Node which own this topic. More...
 
TEnumAsByte< UROS2StateState = UROS2State::Created
 State. More...
 
UROS2QoS QoS = UROS2QoS::Default
 Quality of service. More...
 
UROS2GenericMsgTopicMessage
 Message Instance. More...
 

Protected Member Functions

virtual void InitializeTopicComponent ()
 Initialize ROS2 Topic. Should be implemented in UROS2Publisher and UROS2Subscriber. More...
 

Detailed Description

ROS2 topic class. Parent class of UROS2Publisher and UROS2Subscriber.

UCLASS(ClassGroup = (Custom), Blueprintable, meta = (BlueprintSpawnableComponent))

Member Function Documentation

◆ Destroy()

virtual void UROS2Topic::Destroy ( )
virtual

Destroy topic and TopicMessage.

UFUNCTION()

Reimplemented in UROS2Subscriber, and UROS2Publisher.

◆ Init()

virtual bool UROS2Topic::Init ( )
virtual

◆ InitializeMessage()

virtual bool UROS2Topic::InitializeMessage ( )
virtual

Create TopicMessage instance and initialize it.

UFUNCTION(BlueprintCallable)

◆ InitializeTopicComponent()

virtual void UROS2Topic::InitializeTopicComponent ( )
protectedvirtual

Initialize ROS2 Topic. Should be implemented in UROS2Publisher and UROS2Subscriber.

UFUNCTION()

Reimplemented in UROS2Publisher, and UROS2Subscriber.

◆ InitializeWithROS2()

virtual bool UROS2Topic::InitializeWithROS2 ( UROS2NodeComponent InROS2Node)
virtual

Initialize Topic with ROS2Node.

Parameters
InROS2NodeROS2Node which this publisher/subscriber belongs to

Member Data Documentation

◆ MsgClass

TSubclassOf<UROS2GenericMsg> UROS2Topic::MsgClass

this information is redundant with Topic, but it's needed to initialize it

UPROPERTY(EditAnywhere, BlueprintReadWrite)

◆ OwnerNode

UROS2NodeComponent* UROS2Topic::OwnerNode = nullptr

ROS2Node which own this topic.

UPROPERTY(VisibleAnywhere, BlueprintReadWrite)

◆ QoS

UROS2QoS UROS2Topic::QoS = UROS2QoS::Default

◆ State

TEnumAsByte<UROS2State> UROS2Topic::State = UROS2State::Created

◆ TopicMessage

UROS2GenericMsg* UROS2Topic::TopicMessage

◆ TopicName

FString UROS2Topic::TopicName

this information is redundant with Topic, but it's needed to initialize it

UPROPERTY(EditAnywhere, BlueprintReadWrite)


The documentation for this class was generated from the following file: