def require_ready(func):
    @functools.wraps(func)
    def wrapped(self, *args, **kwargs):
        try:
            self.state.wait("ready", self.ready_timeout)
        except Exception, e:
            pass
        if not self.ready:
            raise RuntimeWarning("Service must be ready to call this method.")
        return func(self, *args, **kwargs)
    return wrapped
Setter for servo's position as an angle.
dataset/ETHPy150Open progrium/ginkgo/ginkgo/core.py/require_ready--crossover with--dataset/ETHPy150Open IEEERobotics/bot/bot/hardware/servo.py/Servo.position