Go to the documentation of this file.
27 #include "Components/ActorComponent.h"
29 #include "CoreMinimal.h"
43 #include "ROS2ServiceServer.generated.h"
86 const FString& InServiceName,
88 const TSubclassOf<UROS2GenericSrv>& InSrvClass,
90 const FServiceCallback& InCallback,
158 void SetDelegates(
const FServiceCallback& InSrvCallback);
217 FString ServiceName = TEXT(
"");
228 TSubclassOf<UROS2GenericSrv> SrvClass = UROS2GenericSrv::StaticClass();
254 virtual void BeginPlay()
override
258 if (ServiceServer ==
nullptr)
Class implementing ROS2 service clients.
Definition: ROS2Service.h:84
@ Services
UMETA(DisplayName = "Parameters"),.
bool Ready
Service is ready or not.
Definition: ROS2ServiceServer.h:139
static UROS2ServiceServer * CreateServiceServer(UObject *InOwner, const FString &InServiceName, const TSubclassOf< UROS2GenericSrv > &InSrvClass, const FServiceCallback &InCallback, const UROS2QoS InQoS=UROS2QoS::Services)
Create a new UROS2ServiceServer of custom type.
This should be refactored with other generic ROS2 types (Msgs, Sensors, Actions).
virtual void ProcessReady()
Determine the relevant service functions to call.
UROS2QoS
used to set QoS policies
Definition: rclcUtilities.h:177
FServiceCallback SrvCallback
used to receive the answer
Definition: ROS2ServiceServer.h:127
virtual void Destroy()
Destroy service with rcl_client_fini.
ROS2 ServiceServer Component. Wrapper of UROS2ServiceServer for BP.
Definition: ROS2ServiceServer.h:193
Class implementing ROS2 service.
rcl_service_t rcl_service
ROS2 Service server.
Definition: ROS2ServiceServer.h:133
Class implementing ROS2 service server.
Definition: ROS2ServiceServer.h:62
FServiceCallback SrvCallback
this is pass to #UROS2ServiceServer::ResponseDelegate in #BeginPlay
Definition: ROS2ServiceServer.h:250
virtual void InitializeServiceComponent()
Initialize ROS2 Action. Should be implemented in UROS2ServiceServer and UROS2ServiceClient.
Class implementing ROS2 node.