Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rwc2024 #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions hmi/scripts/qr_code_decoder
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Comment on lines +128 to +129
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sentence = qr_code_data.lower()
semantics = parse_sentence(sentence, grammar, target)
semantics = parse_sentence(qr_code_data.lower(), grammar, target)

rospy.loginfo(f"Parsed semantics: {semantics}")
result = HMIResult(qr_code_data, semantics)
result = HMIResult(sentence, semantics)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
result = HMIResult(sentence, semantics)
result = HMIResult(qr_code_data, semantics)


return result

Expand Down
2 changes: 1 addition & 1 deletion hmi/tools/continue_gui
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /usr/bin/python
#! /usr/bin/env python

from typing import Callable, Mapping

Expand Down