robokudo.utils.decorators

This module contains Python decorators that can be used to easily extend the functionality of your Annotators.

Functions

timer_decorator(func)

Decorator that logs the execution time of a function.

record_time(func)

Decorator that logs the execution time of a function.

publish_variables(func)

Decorator which is used to publish all collected variable outputs with the standard mechanism

Module Contents

robokudo.utils.decorators.timer_decorator(func)

Decorator that logs the execution time of a function. In case rk_logger is available, the execution time is logged to the logger, otherwise it is printed to the console.

robokudo.utils.decorators.record_time(func)

Decorator that logs the execution time of a function. Assumes to be only called on a member function of an Annotator.

robokudo.utils.decorators.publish_variables(func)

Decorator which is used to publish all collected variable outputs with the standard mechanism