aligator  0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
callbacks.hpp
Go to the documentation of this file.
1
2#pragma once
3
6
7namespace aligator {
8namespace python {
9
11
12struct CallbackWrapper : CallbackBase, bp::wrapper<CallbackBase> {
13 CallbackWrapper() = default;
16 ALIGATOR_PYTHON_OVERRIDE_PURE(void, "call", boost::cref(w), boost::cref(r));
17 }
18};
19} // namespace python
20} // namespace aligator
#define ALIGATOR_PYTHON_OVERRIDE_PURE(ret_type, pyname,...)
Define the body of a virtual function override. This is meant to reduce boilerplate code when exposin...
Definition macros.hpp:41
CallbackBaseTpl< Scalar > CallbackBase
Definition context.hpp:32
Main package namespace.
Base workspace struct for the algorithms.
void call(const WorkspaceBaseTpl< context::Scalar > &w, const ResultsBaseTpl< context::Scalar > &r)
Definition callbacks.hpp:14