Skip to content

Commit

Permalink
Merge pull request #289 from tue-robotics/LoyVanBeek-patch-3
Browse files Browse the repository at this point in the history
Fix that self._robot.hmi.query must be in seconds, not ROS duration
  • Loading branch information
jlunenburg committed May 23, 2017
2 parents 0069217 + 6d75cba commit d4fd87d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def execute(self, userdata):
self._robot.head.look_at_standing_person()

try:
answer = self._robot.hmi.query('Which option?', 'T -> ' + ' | '.join(self._options), 'T', timeout=self._timeout)
answer = self._robot.hmi.query('Which option?', 'T -> ' + ' | '.join(self._options), 'T', timeout=self._timeout.to_sec())
except TimeoutException:
self._robot.speech.speak("Something is wrong with my ears, please take a look!")
return 'no_result'
Expand Down

0 comments on commit d4fd87d

Please sign in to comment.