Skip to content

Commit

Permalink
find smach state is called differently when looking for anyone
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervDooren committed Apr 2, 2019
1 parent 9131e7c commit 8715110
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion action_server/src/action_server/actions/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,13 @@ def _configure(self, robot, config):
# person in room
if not self._semantics.object.id:
self._semantics.object.id = 'someone'
discard_other_labels = False
else:
discard_other_labels = True
self._found_entity_designator = VariableDesignator(resolve_type=Entity)
self._find_state_machines = [
states.FindPersonInRoom(robot, self._semantics.source_location.id, self._semantics.object.id,
True, self._found_entity_designator.writeable)]
discard_other_labels, self._found_entity_designator.writeable)]
self._config_result.context['location'] = {
'designator': EdEntityDesignator(self._robot, id=self._semantics.source_location.id)
}
Expand Down

0 comments on commit 8715110

Please sign in to comment.