Skip to content

Commit

Permalink
adjust warn message that requested goal is already expired. (#1363)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored Oct 8, 2024
1 parent 2f9a771 commit 4d7ff97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rclpy/rclpy/action/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,10 @@ async def _execute_get_result_request(self, request_header_and_message):
'Result request received for goal with ID: {0}'.format(goal_uuid))

# If no goal with the requested ID exists, then return UNKNOWN status
# or the goal with the requested ID has been already expired
if bytes(goal_uuid) not in self._goal_handles:
self._logger.debug(
'Sending result response for unknown goal ID: {0}'.format(goal_uuid))
self._logger.warn(
'Sending result response for unknown or expired goal ID: {0}'.format(goal_uuid))
result_response = self._action_type.Impl.GetResultService.Response()
result_response.status = GoalStatus.STATUS_UNKNOWN
self._handle.send_result_response(request_header, result_response)
Expand Down

0 comments on commit 4d7ff97

Please sign in to comment.