Skip to content

Commit

Permalink
Minor print output changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Kolbe committed Jan 9, 2014
1 parent dd5763b commit 4a0068d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion goap/src/goap/common_ros.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,5 @@ def run(self, next_worldstate):
goal.target_pose.pose = next_worldstate.get_condition_value(Condition.get('robot.pose'))

print 'Waiting for base to reach goal...'
self._client.send_goal_and_wait(goal)
goalstatus = self._client.send_goal_and_wait(goal)
print 'Goal status: ', goalstatus
6 changes: 3 additions & 3 deletions goap/src/goap/goap.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def matches(self, start_worldstate):
matches = False
break
print 'comparing worldstates: ', matches
print 'mine: ', self._condition_values
print 'start: ', start_ws_dict
# print 'mine: ', self._condition_values
# print 'start: ', start_ws_dict
return matches

# def apply_effects(self, action): # TODO: replace by direct calls to action.apply_effects()
Expand Down Expand Up @@ -101,7 +101,7 @@ def __str__(self):
return '%s:%s' % (self.__class__.__name__, self._state_name)

def __repr__(self):
return '<%s name=%s>' % (self.__class__.__name__, self._state_name)
return '<%s state_name=%s>' % (self.__class__.__name__, self._state_name)

def get_value(self):
"""Returns the current value, hopefully not blocking."""
Expand Down
2 changes: 1 addition & 1 deletion goap/src/goap/introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ def _nodeid(self, node):
node_action_name = 'GOAL'
else:
node_action_name = str(node.action) #.__class__.__name__
return node_action_name + '_' + str(id(node))
return node_action_name + ' %X' % id(node)

0 comments on commit 4a0068d

Please sign in to comment.