Exemple #1
0
 def destroy(self):
     """Destroy the underlying action client handle."""
     if self._client_handle is None or self._node.handle is None:
         return
     _rclpy_action.rclpy_action_destroy_entity(self._client_handle, self._node.handle)
     self._node.remove_waitable(self)
     self._client_handle = None
Exemple #2
0
    def destroy(self):
        """Destroy the underlying action server handle."""
        if self._handle is None or self._node.handle is None:
            return

        for goal_handle in self._goal_handles.values():
            goal_handle.destroy()

        _rclpy_action.rclpy_action_destroy_entity(self._handle, self._node.handle)
        self._node.remove_waitable(self)
        self._handle = None