robokudo.utils.error_handling

Functions

raise_to_blackboard(exception)

has_blackboard_exception()

get_blackboard_exception()

clear_blackboard_exception()

catch_and_raise_to_blackboard(function)

This decorator is used to catch exceptions in Annotators to place them into the blackboard. Mostly useful in

Module Contents

robokudo.utils.error_handling.raise_to_blackboard(exception)
robokudo.utils.error_handling.has_blackboard_exception()
robokudo.utils.error_handling.get_blackboard_exception()
robokudo.utils.error_handling.clear_blackboard_exception()
robokudo.utils.error_handling.catch_and_raise_to_blackboard(function)

This decorator is used to catch exceptions in Annotators to place them into the blackboard. Mostly useful in analysis-engines that have a query-interface which should return a failure back to the action-server caller if one of the Annotators yields an exception.

Parameters:

function – The update or compute method of the desired Annotator

Returns:

py_trees.Status.FAILURE , if an exception has been catched or found in the Blackboard.