Skip to content

Commit 831c6f7

Browse files
author
Richardvdketterij
committed
private function should have 1 underscore
1 parent 356bfc0 commit 831c6f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smach_ros/smach_ros/simple_action_state.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def _execution_timer(self):
243243
self.node.get_logger().warn(
244244
f"Action {self._action_name} timed out after {self._exec_timeout.nanoseconds / 1e9} seconds. "
245245
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(
247247
timeout=self._preempt_timeout)
248248
with self._done_cond:
249249
self._done_cond.notify()
@@ -264,11 +264,11 @@ def request_preempt(self):
264264
self.node.get_logger().info(
265265
f"Preempt on action '{self._action_name}' trying to cancel goal: {self._client_goal_handle} "
266266
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)
268268
with self._done_cond:
269269
self._done_cond.notify()
270270

271-
def __cancel_goal_and_wait(self, timeout) -> ActionState:
271+
def _cancel_goal_and_wait(self, timeout) -> ActionState:
272272
"""Cancel goal and wait for the result."""
273273
if self._client_goal_handle is not None:
274274
self._cancel_goal()

0 commit comments

Comments
 (0)