From 4f69fe4eb7c8d7103b0028294cb8da0d43bdf6b6 Mon Sep 17 00:00:00 2001 From: Arpit Aggarwal Date: Fri, 19 Jul 2024 11:58:55 +0200 Subject: [PATCH 1/2] feat: Make sentence lowercase --- hmi/scripts/qr_code_decoder | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 From a07afe765b5c76a0781a77805484f5860ab91742 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Fri, 19 Jul 2024 14:12:19 +0200 Subject: [PATCH 2/2] Use env python --- hmi/tools/continue_gui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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