aligator
0.9.0
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
4
#include "
aligator/python/fwd.hpp
"
5
#include "
aligator/core/callback-base.hpp
"
6
7
namespace
aligator
{
8
namespace
python {
9
10
using
context::CallbackBase
;
11
12
struct
CallbackWrapper
: CallbackBase, bp::wrapper<CallbackBase> {
13
CallbackWrapper
() =
default
;
14
void
call
(
const
WorkspaceBaseTpl<context::Scalar>
&w,
15
const
ResultsBaseTpl<context::Scalar>
&r) {
16
ALIGATOR_PYTHON_OVERRIDE_PURE
(
void
,
"call"
, boost::cref(w), boost::cref(r));
17
}
18
};
19
}
// namespace python
20
}
// namespace aligator
fwd.hpp
ALIGATOR_PYTHON_OVERRIDE_PURE
#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:37
callback-base.hpp
aligator::context::CallbackBase
CallbackBaseTpl< Scalar > CallbackBase
Definition
context.hpp:32
aligator
Main package namespace.
Definition
action-model-wrap.hpp:14
aligator::ResultsBaseTpl
Definition
fwd.hpp:122
aligator::WorkspaceBaseTpl
Base workspace struct for the algorithms.
Definition
fwd.hpp:119
aligator::python::CallbackWrapper
Definition
callbacks.hpp:12
aligator::python::CallbackWrapper::CallbackWrapper
CallbackWrapper()=default
aligator::python::CallbackWrapper::call
void call(const WorkspaceBaseTpl< context::Scalar > &w, const ResultsBaseTpl< context::Scalar > &r)
Definition
callbacks.hpp:14
bindings
python
include
aligator
python
callbacks.hpp
Generated by
1.11.0