aligator  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
gravity-compensation-residual.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <pinocchio/multibody/model.hpp>
6#include <pinocchio/multibody/data.hpp>
7
8namespace aligator {
9
10template <typename _Scalar>
12 using Scalar = _Scalar;
16 using Model = pinocchio::ModelTpl<Scalar>;
17
21
23 GravityCompensationResidualTpl(int ndx, const MatrixXs &actuation_matrix,
24 const Model &model);
26 GravityCompensationResidualTpl(int ndx, const Model &model);
27
28 void evaluate(const ConstVectorRef &x, const ConstVectorRef &u,
29 BaseData &data) const;
30 void computeJacobians(const ConstVectorRef &x, const ConstVectorRef &u,
31 BaseData &data) const;
32
33 struct Data : BaseData {
34 pinocchio::DataTpl<Scalar> pin_data_;
35 VectorXs tmp_torque_;
38 };
39
40 shared_ptr<BaseData> createData() const;
41};
42
43#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
45#endif
46
47} // namespace aligator
Base definitions for ternary functions.
Main package namespace.
Data(const GravityCompensationResidualTpl &resdl)
GravityCompensationResidualTpl(int ndx, const MatrixXs &actuation_matrix, const Model &model)
Constructor with an actuation matrix.
shared_ptr< BaseData > createData() const
Instantiate a Data object.
GravityCompensationResidualTpl(int ndx, const Model &model)
Full actuation constructor.
void evaluate(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
void computeJacobians(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
Base struct for function data.
Definition fwd.hpp:59
Class representing ternary functions .
Definition fwd.hpp:53