Skip to content

Commit

Permalink
private function should have 1 underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
Richardvdketterij committed Feb 15, 2024
1 parent 356bfc0 commit 831c6f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smach_ros/smach_ros/simple_action_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def _execution_timer(self):
self.node.get_logger().warn(
f"Action {self._action_name} timed out after {self._exec_timeout.nanoseconds / 1e9} seconds. "
f"Trying to cancel goal with timeout {self._preempt_timeout.nanoseconds / 1e9}.")
self._status = self.__cancel_goal_and_wait(
self._status = self._cancel_goal_and_wait(
timeout=self._preempt_timeout)
with self._done_cond:
self._done_cond.notify()
Expand All @@ -264,11 +264,11 @@ def request_preempt(self):
self.node.get_logger().info(
f"Preempt on action '{self._action_name}' trying to cancel goal: {self._client_goal_handle} "
f"with timeout {self._preempt_timeout.nanoseconds / 1e9}")
self._status = self.__cancel_goal_and_wait(self._preempt_timeout)
self._status = self._cancel_goal_and_wait(self._preempt_timeout)
with self._done_cond:
self._done_cond.notify()

def __cancel_goal_and_wait(self, timeout) -> ActionState:
def _cancel_goal_and_wait(self, timeout) -> ActionState:
"""Cancel goal and wait for the result."""
if self._client_goal_handle is not None:
self._cancel_goal()
Expand Down

0 comments on commit 831c6f7

Please sign in to comment.