From 16fcab0c71654eebf9cd03b929099f42bb8f2574 Mon Sep 17 00:00:00 2001 From: Chien-Ming Huang Date: Mon, 26 Jun 2017 13:20:44 -0400 Subject: [PATCH] fixing issue about two animations having the same name --- src/robot_translation_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/robot_translation_node.py b/src/robot_translation_node.py index 115d128..a896d9b 100755 --- a/src/robot_translation_node.py +++ b/src/robot_translation_node.py @@ -288,7 +288,7 @@ def command_to_behavior_queue(self, properties): for matches in regex.finditer(properties): _first_match = matches.group() break - _seg = properties.split(_first_match) + _seg = properties.split(_first_match, 1) _speech = _seg[0] _speech = _speech.strip('\n') _speech = _speech.strip('\t') @@ -297,6 +297,7 @@ def command_to_behavior_queue(self, properties): if _speech != "": jibo_behavior_queue.put(_speech) jibo_behavior_queue.put(_first_match) + rospy.loginfo('_first_match = ' + _first_match) properties = _seg[1] properties = properties.strip('\n') properties = properties.strip('\t')