From 7ce2e3cc6824a905e9b00c49a2fe85657b7eca9a Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Mon, 8 Mar 2021 18:31:52 +0900 Subject: [PATCH] structuretest : skip tailing space for msg.children.. --- pddl/pddl_planner/test/structuretest | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pddl/pddl_planner/test/structuretest b/pddl/pddl_planner/test/structuretest index 7d114ec9..d9ec79bf 100755 --- a/pddl/pddl_planner/test/structuretest +++ b/pddl/pddl_planner/test/structuretest @@ -96,6 +96,12 @@ class StructureChecker(object): def _callback(self, msg): message_matched = True + # skip tailing spaces + msg.children = map(lambda x: x.strip(), msg.children) + msg.internal_outcomes = map(lambda x: x.strip(), msg.internal_outcomes) + msg.outcomes_from = map(lambda x: x.strip(), msg.outcomes_from) + msg.outcomes_to = map(lambda x: x.strip(), msg.outcomes_to) + msg.container_outcomes = map(lambda x: x.strip(), msg.container_outcomes) rospy.loginfo("received msg") if not self.struct.children == None: rospy.loginfo(" - children: {}".format(msg.children))