12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
- #include " plansys2_pddl_parser/Utils.hpp"
16
-
17
15
#include < memory>
18
16
17
+ #include " plansys2_pddl_parser/Utils.hpp"
18
+
19
19
#include " plansys2_msgs/msg/action_execution_info.hpp"
20
20
#include " plansys2_msgs/msg/plan.hpp"
21
21
@@ -119,12 +119,12 @@ class PatrollingController : public rclcpp::Node
119
119
if (action_feedback.status == plansys2_msgs::msg::ActionExecutionInfo::FAILED) {
120
120
RCLCPP_ERROR_STREAM (
121
121
get_logger (), " [" << action_feedback.action <<
122
- " ] finished with error: " << action_feedback.message_status );
122
+ " ] finished with error: " << action_feedback.message_status );
123
123
}
124
124
}
125
125
break ;
126
126
}
127
-
127
+
128
128
// Compute the plan
129
129
auto domain = domain_expert_->getDomain ();
130
130
auto problem = problem_expert_->getProblem ();
@@ -137,7 +137,8 @@ class PatrollingController : public rclcpp::Node
137
137
}
138
138
139
139
// Execute the plan
140
- if (executor_client_->getResult ().value ().result == plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
140
+ if (executor_client_->getResult ().value ().result ==
141
+ plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
141
142
executor_client_->start_plan_execution (plan.value ()))
142
143
{
143
144
state_ = PATROL_WP2;
@@ -176,12 +177,12 @@ class PatrollingController : public rclcpp::Node
176
177
if (action_feedback.status == plansys2_msgs::msg::ActionExecutionInfo::FAILED) {
177
178
RCLCPP_ERROR_STREAM (
178
179
get_logger (), " [" << action_feedback.action <<
179
- " ] finished with error: " << action_feedback.message_status );
180
+ " ] finished with error: " << action_feedback.message_status );
180
181
}
181
182
}
182
183
break ;
183
184
}
184
-
185
+
185
186
// Compute the plan
186
187
auto domain = domain_expert_->getDomain ();
187
188
auto problem = problem_expert_->getProblem ();
@@ -194,7 +195,8 @@ class PatrollingController : public rclcpp::Node
194
195
}
195
196
196
197
// Execute the plan
197
- if (executor_client_->getResult ().value ().result == plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
198
+ if (executor_client_->getResult ().value ().result ==
199
+ plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
198
200
executor_client_->start_plan_execution (plan.value ()))
199
201
{
200
202
state_ = PATROL_WP2;
@@ -233,12 +235,12 @@ class PatrollingController : public rclcpp::Node
233
235
if (action_feedback.status == plansys2_msgs::msg::ActionExecutionInfo::FAILED) {
234
236
RCLCPP_ERROR_STREAM (
235
237
get_logger (), " [" << action_feedback.action <<
236
- " ] finished with error: " << action_feedback.message_status );
238
+ " ] finished with error: " << action_feedback.message_status );
237
239
}
238
240
}
239
241
break ;
240
242
}
241
-
243
+
242
244
// Compute the plan
243
245
auto domain = domain_expert_->getDomain ();
244
246
auto problem = problem_expert_->getProblem ();
@@ -251,7 +253,8 @@ class PatrollingController : public rclcpp::Node
251
253
}
252
254
253
255
// Execute the plan
254
- if (executor_client_->getResult ().value ().result == plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
256
+ if (executor_client_->getResult ().value ().result ==
257
+ plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
255
258
executor_client_->start_plan_execution (plan.value ()))
256
259
{
257
260
state_ = PATROL_WP2;
@@ -290,12 +293,12 @@ class PatrollingController : public rclcpp::Node
290
293
if (action_feedback.status == plansys2_msgs::msg::ActionExecutionInfo::FAILED) {
291
294
RCLCPP_ERROR_STREAM (
292
295
get_logger (), " [" << action_feedback.action <<
293
- " ] finished with error: " << action_feedback.message_status );
296
+ " ] finished with error: " << action_feedback.message_status );
294
297
}
295
298
}
296
299
break ;
297
300
}
298
-
301
+
299
302
// Compute the plan
300
303
auto domain = domain_expert_->getDomain ();
301
304
auto problem = problem_expert_->getProblem ();
@@ -308,7 +311,8 @@ class PatrollingController : public rclcpp::Node
308
311
}
309
312
310
313
// Execute the plan
311
- if (executor_client_->getResult ().value ().result == plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
314
+ if (executor_client_->getResult ().value ().result ==
315
+ plansys2_msgs::action::ExecutePlan::Result::SUCCESS &&
312
316
executor_client_->start_plan_execution (plan.value ()))
313
317
{
314
318
state_ = PATROL_WP2;
0 commit comments