rclUE
ROS2GenericAction.h
Go to the documentation of this file.
1 
15 #pragma once
16 
17 
18 
19 #include "rclcUtilities.h"
20 
21 
22 
23 #include <CoreMinimal.h>
24 
25 #include <rosidl_runtime_c/action_type_support_struct.h>
26 
27 
28 
29 #include "ROS2GenericAction.generated.h"
30 
31 
32 
46 class RCLUE_API UROS2GenericAction : public UObject
47 
48 {
49 
50 
51 
52 public:
53 
54 
59  virtual void Init();
60 
61 
62 
63 
68  virtual void Fini();
69 
70 
71 
72  virtual void* GetGoalRequest();
73 
74  virtual void* GetGoalResponse();
75 
76  virtual void* GetResultRequest();
77 
78  virtual void* GetResultResponse();
79 
80  virtual void* GetFeedbackMessage();
81 
82 
83 
84  void* GetCancelRequest();
85 
86  void* GetCancelResponse();
87 
88 
89 
90  virtual const rosidl_action_type_support_t* GetTypeSupport() const;
91 
92 
93 
94 
99  virtual const FString ActionGoalToString() const;
100 
101 
102 
103 
108  virtual const FString ActionResultToString() const;
109 
110 
111 
112 
117  virtual const FString ActionFeedbackToString() const;
118 
119 
120 
121 
127 
128  {
129 
130  return cancel_response.return_code;
131 
132  }
133 
134 
135 
136 private:
137 
138  action_msgs__srv__CancelGoal_Request cancel_request;
139 
140  action_msgs__srv__CancelGoal_Response cancel_response;
141 
142 };
143 
rclcUtilities.h
Header containing utilities and includes that are needed/useful in almost any class in rclUE.
UROS2GenericAction
This should be refactored with other generic ROS2 types (Msgs, Sensors, Actions).
Definition: ROS2GenericAction.h:46
UROS2GenericAction::GetCancelResponseReturnCode
int GetCancelResponseReturnCode()
Definition: ROS2GenericAction.h:126