Package baxter_dataflow :: Module wait_for'
[hide private]
[frames] | no frames]

Module wait_for'

source code

Functions [hide private]
 
wait_for(test, timeout=1.0, raise_on_error=True, rate=100, timeout_msg='timeout expired', body=None)
Waits until some condition evaluates to true.
source code
Variables [hide private]
  __package__ = 'baxter_dataflow'

Imports: errno, rospy


Function Details [hide private]

wait_for(test, timeout=1.0, raise_on_error=True, rate=100, timeout_msg='timeout expired', body=None)

source code 

Waits until some condition evaluates to true.

Parameters:
  • test - zero param function to be evaluated
  • timeout - max amount of time to wait. negative/inf for indefinitely
  • raise_on_error - raise or just return False
  • rate - the rate at which to check
  • timout_msg - message to supply to the timeout exception
  • body - optional function to execute while waiting