aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
expose-gravity-compensation.cpp
Go to the documentation of this file.
5
6namespace aligator::python {
7using context::MatrixXs;
13
15 bp::class_<GravityCompensationResidual, bp::bases<StageFunction>>(
16 "GravityCompensationResidual", bp::no_init)
17 .def(bp::init<int, const MatrixXs &, const PinModel &>(
18 ("self"_a, "ndx", "actuation_matrix", "model")))
19 .def(bp::init<int, const PinModel &>(("self"_a, "ndx", "model")))
20 .def_readonly("pin_model", &GravityCompensationResidual::pin_model_)
21 .def_readonly("actuation_matrix",
23 .def_readonly("use_actuation_matrix",
26
27 bp::class_<GravityCompensationResidual::Data, bp::bases<StageFunctionData>>(
28 "GravityCompensationData", bp::no_init)
29 .def_readonly("pin_data", &GravityCompensationResidual::Data::pin_data_);
30}
31
32} // namespace aligator::python
pinocchio::ModelTpl< Scalar, Options > PinModel
Definition context.hpp:9
StageFunctionTpl< Scalar > StageFunction
Definition context.hpp:16
StageFunctionDataTpl< Scalar > StageFunctionData
Definition context.hpp:18
The Python bindings.
Definition blk-matrix.hpp:5