robokudo.annotators.lambda_function¶
Lambda function annotator for RoboKudo.
This module provides an annotator for executing arbitrary functions. It supports:
Dynamic function execution
Custom function arguments
Flexible parameter passing
Generic function handling
The module is used for:
Custom processing
Dynamic behavior
Testing and debugging
Quick prototyping
Classes¶
Annotator for executing arbitrary functions. |
Module Contents¶
- class robokudo.annotators.lambda_function.LambdaFunctionAnnotator(name='LambdaFunctionAnnotator', descriptor=Descriptor())¶
-
Bases:
robokudo.annotators.core.BaseAnnotatorAnnotator for executing arbitrary functions.
This annotator executes a provided function with configurable arguments, allowing for dynamic behavior definition without creating new annotator classes.
- Variables:
-
descriptor – Configuration descriptor containing function parameters
- class Descriptor¶
-
Bases:
robokudo.annotators.core.BaseAnnotator.DescriptorConfiguration descriptor for lambda function annotator.
- Variables:
-
parameters – Function parameters
- class Parameters¶
-
Parameter container for function configuration.
- Variables:
-
func – Function to execute
func_args – Positional arguments for function
func_kwargs – Keyword arguments for function
- func = None¶
- func_args = None¶
- func_kwargs = None¶
- parameters¶
- update()¶
-
Execute the configured function.
The function is called with the annotator instance as first argument, followed by any configured positional and keyword arguments.
- Returns:
-
SUCCESS status
- Return type:
-
py_trees.Status