From 831c6f7bff45542af46a498baeea5a879c924ded Mon Sep 17 00:00:00 2001 From: Richardvdketterij Date: Thu, 15 Feb 2024 14:08:30 +0100 Subject: [PATCH] private function should have 1 underscore --- smach_ros/smach_ros/simple_action_state.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/smach_ros/smach_ros/simple_action_state.py b/smach_ros/smach_ros/simple_action_state.py index 5e8fb4d..a90d7ed 100644 --- a/smach_ros/smach_ros/simple_action_state.py +++ b/smach_ros/smach_ros/simple_action_state.py @@ -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() @@ -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()