aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
centroidal-fwd.hpp
Go to the documentation of this file.
1
2#pragma once
3
6
7#include <proxsuite-nlp/modelling/spaces/vector-space.hpp>
8
9namespace aligator {
10namespace dynamics {
11template <typename Scalar> struct CentroidalFwdDataTpl;
12
23template <typename _Scalar>
25 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
26 using Scalar = _Scalar;
32 using Manifold = proxsuite::nlp::VectorSpaceTpl<Scalar>;
33 using Matrix3s = Eigen::Matrix<Scalar, 3, 3>;
35
36 using Base::nu_;
37
39 std::size_t nk_;
40 double mass_;
41 Vector3s gravity_;
44
45 const Manifold &space() const { return *space_; }
46
47 CentroidalFwdDynamicsTpl(const Manifold &state, const double mass,
48 const Vector3s &gravity,
49 const ContactMap &contact_map, const int force_size);
50
51 void forward(const ConstVectorRef &x, const ConstVectorRef &u,
52 BaseData &data) const;
53 void dForward(const ConstVectorRef &x, const ConstVectorRef &u,
54 BaseData &data) const;
55
56 shared_ptr<ContDataAbstract> createData() const;
57};
58
59template <typename Scalar>
62 using Matrix3s = Eigen::Matrix<Scalar, 3, 3>;
63
65
67};
68
69} // namespace dynamics
70} // namespace aligator
71
72#include "aligator/modelling/dynamics/centroidal-fwd.hxx"
Main package namespace.
Defines a class representing ODEs.
Eigen::Matrix< Scalar, 3, 3 > Matrix3s
CentroidalFwdDataTpl(const CentroidalFwdDynamicsTpl< Scalar > *cont_dyn)
Nonlinear centroidal forward dynamics.
Definition fwd.hpp:26
void dForward(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
Evaluate the vector field Jacobians.
shared_ptr< ContDataAbstract > createData() const
Create a data holder instance.
proxsuite::nlp::VectorSpaceTpl< Scalar > Manifold
CentroidalFwdDynamicsTpl(const Manifold &state, const double mass, const Vector3s &gravity, const ContactMap &contact_map, const int force_size)
void forward(const ConstVectorRef &x, const ConstVectorRef &u, BaseData &data) const
Evaluate the ODE vector field: this returns the value of .
Data struct for ContinuousDynamicsAbstractTpl.
Definition fwd.hpp:15
Base class for ODE dynamics .