Wrapper Actor implementation of UROS2NodeComponent.
More...
#include <ROS2Node.h>
◆ AddActionClient()
◆ AddActionServer()
◆ AddPublisher()
◆ AddServiceClient()
◆ AddServiceServer()
void AROS2Node::AddServiceServer |
( |
const FString & |
ServiceName, |
|
|
const TSubclassOf< UROS2GenericSrv > |
SrvClass, |
|
|
const FServiceCallback & |
Callback |
|
) |
| |
Create ServiceServer with rcl_service_init and add to Services.
- Note
- Keep original arguments, instead of take ServiceServer as arg in ROS2NodeComponent.
- Parameters
-
ServiceName | |
SrvClass | |
Callback | |
UFUNCTION(BlueprintCallable)
◆ AddSubscription()
void AROS2Node::AddSubscription |
( |
const FString & |
TopicName, |
|
|
TSubclassOf< UROS2GenericMsg > |
MsgClass, |
|
|
const FSubscriptionCallback & |
Callback |
|
) |
| |
Methods to register subscribers.
It is up to the user to ensure that they are only added once
- Parameters
-
TopicName | |
MsgClass | |
Callback | |
UFUNCTION(BlueprintCallable)
◆ GetNode()
rcl_node_t* AROS2Node::GetNode |
( |
| ) |
|
Initilize rosnode with rclc_node_init_default.
This can't be pre-placed in AROS2Node::BeginPlay() as the order of rcl(c) instructions could be different/relevant in
each of Child classes
UFUNCTION(BlueprintCallable) void Init();
◆ Name
FString AROS2Node::Name = TEXT("node") |
◆ Namespace
FString AROS2Node::Namespace = TEXT("") |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/rclue/checkouts/devel/Source/rclUE/Public/ROS2Node.h