File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ def _execution_timer(self):
243
243
self .node .get_logger ().warn (
244
244
f"Action { self ._action_name } timed out after { self ._exec_timeout .nanoseconds / 1e9 } seconds. "
245
245
f"Trying to cancel goal with timeout { self ._preempt_timeout .nanoseconds / 1e9 } ." )
246
- self ._status = self .__cancel_goal_and_wait (
246
+ self ._status = self ._cancel_goal_and_wait (
247
247
timeout = self ._preempt_timeout )
248
248
with self ._done_cond :
249
249
self ._done_cond .notify ()
@@ -264,11 +264,11 @@ def request_preempt(self):
264
264
self .node .get_logger ().info (
265
265
f"Preempt on action '{ self ._action_name } ' trying to cancel goal: { self ._client_goal_handle } "
266
266
f"with timeout { self ._preempt_timeout .nanoseconds / 1e9 } " )
267
- self ._status = self .__cancel_goal_and_wait (self ._preempt_timeout )
267
+ self ._status = self ._cancel_goal_and_wait (self ._preempt_timeout )
268
268
with self ._done_cond :
269
269
self ._done_cond .notify ()
270
270
271
- def __cancel_goal_and_wait (self , timeout ) -> ActionState :
271
+ def _cancel_goal_and_wait (self , timeout ) -> ActionState :
272
272
"""Cancel goal and wait for the result."""
273
273
if self ._client_goal_handle is not None :
274
274
self ._cancel_goal ()
You can’t perform that action at this time.
0 commit comments