Skip to content

Commit

Permalink
Change return type to data instead of image
Browse files Browse the repository at this point in the history
  • Loading branch information
P-ict0 committed Mar 5, 2024
1 parent ecfdacb commit 26a8566
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hmi/scripts/qr_code_decoder
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ class QRCodeDecode(AbstractHMIServer):

self.decode_qr_code()

semantics = parse_sentence(self._image, grammar, target)
rospy.loginfo("QR code data: %s", self._qr_code_data)
semantics = parse_sentence(self._qr_code_data, grammar, target)

rospy.loginfo("Parsed semantics: %s", semantics)

result = HMIResult(self._image, semantics)
result = HMIResult(self._qr_code_data, semantics)
self._string = None

return result
Expand Down

0 comments on commit 26a8566

Please sign in to comment.