proxsuite-nlp  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear programming on manifolds.
Loading...
Searching...
No Matches
expose-pinocchio-residuals.cpp
Go to the documentation of this file.
1#ifdef PROXSUITE_NLP_WITH_PINOCCHIO
3
5
6namespace proxsuite {
7namespace nlp {
8namespace python {
9
10using context::Scalar;
11
12// fwd declaration
13void exposePinocchioResiduals() {
14 using RigidTransformPointAction = RigidTransformationPointActionTpl<Scalar>;
16 "RigidTransformationPointAction",
17 "A residual representing the action :math:`M\\cdot p = Rp + t` of a "
18 "rigid "
19 "transform :math:`M` on a 3D point :math:`p`.",
20 bp::init<context::Vector3s>(bp::args("self", "point")))
21 .def_readonly("space", &RigidTransformPointAction::space_,
22 "Function input space.")
23 .def_readwrite("point", &RigidTransformPointAction::point_)
24 .add_property("skew_matrix", &RigidTransformPointAction::skew_point);
25}
26
27} // namespace python
28} // namespace nlp
29} // namespace proxsuite
30#endif
auto expose_function(const char *name, const char *docstring, Init init)
Expose a differentiable residual (subclass of C2FunctionTpl).
Definition residuals.hpp:9
Main package namespace.
Definition bcl-params.hpp:5