Skip to content

Commit

Permalink
structuretest : skip tailing space for msg.children..
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Mar 9, 2021
1 parent c25ca83 commit 2ca9006
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pddl/pddl_planner/test/structuretest
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 2ca9006

Please sign in to comment.