robokudo.annotators.lambda_function =================================== .. py:module:: robokudo.annotators.lambda_function .. autoapi-nested-parse:: 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 ------- .. autoapisummary:: robokudo.annotators.lambda_function.LambdaFunctionAnnotator Module Contents --------------- .. py:class:: LambdaFunctionAnnotator(name='LambdaFunctionAnnotator', descriptor=Descriptor()) Bases: :py:obj:`robokudo.annotators.core.BaseAnnotator` Annotator for executing arbitrary functions. This annotator executes a provided function with configurable arguments, allowing for dynamic behavior definition without creating new annotator classes. :ivar descriptor: Configuration descriptor containing function parameters :type descriptor: LambdaFunctionAnnotator.Descriptor .. py:class:: Descriptor Bases: :py:obj:`robokudo.annotators.core.BaseAnnotator.Descriptor` Configuration descriptor for lambda function annotator. :ivar parameters: Function parameters :type parameters: LambdaFunctionAnnotator.Descriptor.Parameters .. py:class:: Parameters Parameter container for function configuration. :ivar func: Function to execute :type func: callable :ivar func_args: Positional arguments for function :type func_args: tuple :ivar func_kwargs: Keyword arguments for function :type func_kwargs: dict .. py:attribute:: func :value: None .. py:attribute:: func_args :value: None .. py:attribute:: func_kwargs :value: None .. py:attribute:: parameters .. py:method:: update() Execute the configured function. The function is called with the annotator instance as first argument, followed by any configured positional and keyword arguments. :return: SUCCESS status :rtype: py_trees.common.Status