diff --git a/hmi/scripts/qr_code_decoder b/hmi/scripts/qr_code_decoder index b7be36f..88fa2df 100755 --- a/hmi/scripts/qr_code_decoder +++ b/hmi/scripts/qr_code_decoder @@ -125,9 +125,10 @@ class QRCodeDecode(AbstractHMIServer): self.reset_server() rospy.loginfo(f"QR code data: {qr_code_data}") - semantics = parse_sentence(qr_code_data, grammar, target) + sentence = qr_code_data.lower() + semantics = parse_sentence(sentence, grammar, target) rospy.loginfo(f"Parsed semantics: {semantics}") - result = HMIResult(qr_code_data, semantics) + result = HMIResult(sentence, semantics) return result diff --git a/hmi/tools/continue_gui b/hmi/tools/continue_gui index 9c523a6..f018c9f 100755 --- a/hmi/tools/continue_gui +++ b/hmi/tools/continue_gui @@ -1,4 +1,4 @@ -#! /usr/bin/python +#! /usr/bin/env python from typing import Callable, Mapping