aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
expose-utils.cpp
Go to the documentation of this file.
1
4
5namespace aligator {
6namespace python {
7void exposeUtils() {
8 using DynamicsType = DynamicsModelTpl<context::Scalar>;
9 using ExplicitDynamics = ExplicitDynamicsModelTpl<context::Scalar>;
10
11 using rollout_generic_t = context::VectorOfVectors (*)(
12 const DynamicsType &, const context::VectorXs &,
13 const context::VectorOfVectors &);
14
15 using rollout_vec_generic_t = context::VectorOfVectors (*)(
16 const std::vector<xyz::polymorphic<DynamicsType>> &,
17 const context::VectorXs &, const context::VectorOfVectors &);
18
19 using rollout_explicit_t = context::VectorOfVectors (*)(
20 const ExplicitDynamics &, const context::VectorXs &,
21 const context::VectorOfVectors &);
22
23 using rollout_vec_explicit_t = context::VectorOfVectors (*)(
24 const std::vector<xyz::polymorphic<ExplicitDynamics>> &,
25 const context::VectorXs &, const context::VectorOfVectors &);
26
27 bp::def<rollout_generic_t>(
28 "rollout_implicit", &aligator::rollout, bp::args("dyn_model", "x0", "us"),
29 "Perform a dynamics rollout, for a dynamics model.");
30
31 bp::def<rollout_explicit_t>(
32 "rollout", &aligator::rollout, bp::args("dyn_model", "x0", "us"),
33 "Perform a rollout of a single explicit dynamics model.");
34
35 bp::def<rollout_vec_generic_t>(
36 "rollout_implicit", &aligator::rollout,
37 bp::args("dyn_models", "x0", "us"),
38 "Perform a dynamics rollout, for multiple discrete dynamics models.");
39
40 bp::def<rollout_vec_explicit_t>(
41 "rollout", &aligator::rollout, bp::args("dyn_models", "x0", "us"),
42 "Perform a rollout of multiple explicit dynamics model.");
43}
44
45} // namespace python
46} // namespace aligator
Main package namespace.
math_types< Scalar >::VectorOfVectors rollout(const std::vector< xyz::polymorphic< DynamicsModelTpl< Scalar > > > &dyn_models, const typename math_types< Scalar >::VectorXs &x0, const typename math_types< Scalar >::VectorOfVectors &us, typename math_types< Scalar >::VectorOfVectors &xout)
Perform a rollout of the supplied dynamical models.
Definition rollout.hpp:9
Dynamics model: describes system dynamics through an implicit relation .
Definition fwd.hpp:71
Explicit forward dynamics model .
Definition fwd.hpp:80