Class implementing ROS2 action clients. Wrapper class of rclc action client. Callbacks are set through the SetDelegates.
More...
#include <ROS2ActionClient.h>
|
virtual void | Destroy () override |
| Destroy action client from rclc. More...
|
|
virtual void | ProcessReady (rcl_wait_set_t *wait_set) override |
| Determine the relevant action client functions to call. More...
|
|
bool | SendGoal () |
| Send action goal with rcl_action_send_goal_request. More...
|
|
template<typename TAction , typename TUEStruct > |
void | SendGoal (const TUEStruct &InGoalData) |
| Send a goal. More...
|
|
void | SendResultRequest () |
| Send result request to get result with rcl_action_send_result_request. More...
|
|
void | SendCancelRequest () |
| Send cancel request with rcl_action_send_cancel_request. More...
|
|
void | SetDelegates (const FActionCallback &InFeedbackDelegate, const FActionCallback &InResultResponseDelegate, const FActionCallback &InGoalResponseDelegate, const FSimpleCallback &InCancelResponseDelegate) |
| Set the Delegates. More...
|
|
virtual bool | InitializeWithROS2 (UROS2NodeComponent *InROS2Node) |
| Initialize action. More...
|
|
virtual bool | Init () |
| Initialize action and action component. More...
|
|
virtual bool | InitializeAction () |
| Create and Initize action. More...
|
|
|
static UROS2ActionClient * | CreateActionClient (UObject *InOwner, const FString &InActionName, const TSubclassOf< UROS2GenericAction > &InActionClass, const FActionCallback &InGoalResponseDelegate, const FActionCallback &InResultResponseDelegate, const FActionCallback &InFeedbackDelegate, const FSimpleCallback &InCancelResponseDelegate, const UROS2QoS InGoalQoS=UROS2QoS::Services, const UROS2QoS InResultQoS=UROS2QoS::Services, const UROS2QoS InFeedbackQoS=UROS2QoS::Default, const UROS2QoS InCancelQoS=UROS2QoS::Services) |
| Create Action Client. More...
|
|
Class implementing ROS2 action clients. Wrapper class of rclc action client. Callbacks are set through the SetDelegates.
method
- See also
- rclc action client
-
Unreal Engine Delegates
UCLASS(ClassGroup = (Custom), Blueprintable, BlueprintType, meta = (BlueprintSpawnableComponent))
◆ CreateActionClient()
static UROS2ActionClient* UROS2ActionClient::CreateActionClient |
( |
UObject * |
InOwner, |
|
|
const FString & |
InActionName, |
|
|
const TSubclassOf< UROS2GenericAction > & |
InActionClass, |
|
|
const FActionCallback & |
InGoalResponseDelegate, |
|
|
const FActionCallback & |
InResultResponseDelegate, |
|
|
const FActionCallback & |
InFeedbackDelegate, |
|
|
const FSimpleCallback & |
InCancelResponseDelegate, |
|
|
const UROS2QoS |
InGoalQoS = UROS2QoS::Services , |
|
|
const UROS2QoS |
InResultQoS = UROS2QoS::Services , |
|
|
const UROS2QoS |
InFeedbackQoS = UROS2QoS::Default , |
|
|
const UROS2QoS |
InCancelQoS = UROS2QoS::Services |
|
) |
| |
|
static |
Create Action Client.
- Parameters
-
InOwner | |
InActionName | |
InActionClass | |
InFeedbackDelegate | |
InResultResponseDelegate | |
InGoalResponseDelegate | |
InCancelResponseDelegate | |
- Returns
- UROS2ActionClient*
◆ Destroy()
virtual void UROS2ActionClient::Destroy |
( |
| ) |
|
|
overridevirtual |
Destroy action client from rclc.
Reimplemented from UROS2Action.
◆ InitializeActionComponent()
virtual void UROS2ActionClient::InitializeActionComponent |
( |
| ) |
|
|
overrideprivatevirtual |
Initialize ROS2 action client with rcl_action_client_init.
Set QOS for all goal, result, cancel, feedback and status
Reimplemented from UROS2Action.
◆ ProcessReady()
virtual void UROS2ActionClient::ProcessReady |
( |
rcl_wait_set_t * |
wait_set | ) |
|
|
overridevirtual |
Determine the relevant action client functions to call.
- Parameters
-
Reimplemented from UROS2Action.
◆ SendCancelRequest()
void UROS2ActionClient::SendCancelRequest |
( |
| ) |
|
◆ SendGoal() [1/2]
bool UROS2ActionClient::SendGoal |
( |
| ) |
|
◆ SendGoal() [2/2]
template<typename TAction , typename TUEStruct >
void UROS2ActionClient::SendGoal |
( |
const TUEStruct & |
InGoalData | ) |
|
|
inline |
Send a goal.
- Template Parameters
-
- Parameters
-
◆ SendResultRequest()
void UROS2ActionClient::SendResultRequest |
( |
| ) |
|
◆ SetDelegates()
void UROS2ActionClient::SetDelegates |
( |
const FActionCallback & |
InFeedbackDelegate, |
|
|
const FActionCallback & |
InResultResponseDelegate, |
|
|
const FActionCallback & |
InGoalResponseDelegate, |
|
|
const FSimpleCallback & |
InCancelResponseDelegate |
|
) |
| |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/rclue/checkouts/devel/Source/rclUE/Public/ROS2ActionClient.h