Template Function yasmin::pybind11_utils::wrap_blackboard_callback_with_return
Defined in File pybind11_utils.hpp
Function Documentation
-
template<typename ReturnType>
inline auto yasmin::pybind11_utils::wrap_blackboard_callback_with_return(py::function cb) Wrap a C++ callback to handle BlackboardPyWrapper conversion with return value.
This wrapper is for callbacks that return a value (e.g., std::string for CbState).
- Template Parameters:
ReturnType – The return type of the callback
- Parameters:
cb – The Python callback function
- Returns:
A wrapped C++ function that converts Blackboard to BlackboardPyWrapper and returns the callback result