From 75916414b6d0b8c3c725afa6ea9a47cca01914b0 Mon Sep 17 00:00:00 2001 From: Matt Barker <105945282+m-barker@users.noreply.github.com> Date: Tue, 23 Apr 2024 10:35:18 +0100 Subject: [PATCH] Update tasks/gpsr/states/command_similarity_matcher.py Co-authored-by: Jared Swift --- tasks/gpsr/states/command_similarity_matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/gpsr/states/command_similarity_matcher.py b/tasks/gpsr/states/command_similarity_matcher.py index e07e3d6d9..771a9cd52 100755 --- a/tasks/gpsr/states/command_similarity_matcher.py +++ b/tasks/gpsr/states/command_similarity_matcher.py @@ -38,7 +38,7 @@ def execute(self, userdata): request.index_paths = self._index_paths request.query_sentence = userdata.command request.k = 1 - request.vecs_per_txt_file = userdata.n_vecs_per_txt_file + request.vecs_per_txt_file = self._n_vecs_per_txt_file response = self._query_service(request) userdata.matched_command = response.closest_sentences[0] rospy.loginfo(f"Matched command: {response.closest_sentences[0]}")