|
C++ YASMIN (Yet Another State MachINe)
|
Functions | |
| std::shared_ptr< yasmin::blackboard::Blackboard > | convert_blackboard_from_python (py::object blackboard_obj) |
| Convert a Python blackboard object to a C++ Blackboard shared pointer. | |
| template<typename Func> | |
| auto | wrap_blackboard_callback (py::function cb) |
| Wrap a C++ callback to handle BlackboardPyWrapper conversion (void return). | |
| template<typename ReturnType> | |
| auto | wrap_blackboard_callback_with_return (py::function cb) |
| Wrap a C++ callback to handle BlackboardPyWrapper conversion with return value. | |
| template<typename ClassType, typename StateType> | |
| void | add_call_operator (ClassType &cls) |
| Helper to define the standard call method for State classes. | |
|
inline |
Helper to define the standard call method for State classes.
This template function adds a call method that:
| ClassType | The pybind11 class type |
| StateType | The state class type (State, StateMachine, Concurrence) |
| cls | The pybind11 class definition |
|
inline |
Convert a Python blackboard object to a C++ Blackboard shared pointer.
This function handles multiple input types:
| blackboard_obj | Python object that may contain a blackboard |
|
inline |
Wrap a C++ callback to handle BlackboardPyWrapper conversion (void return).
This is a generic wrapper for callbacks that take a blackboard as the first parameter and return void.
| Func | The function type to wrap |
| cb | The Python callback function |
|
inline |
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).
| ReturnType | The return type of the callback |
| cb | The Python callback function |