aligator  0.9.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
stage-data.hpp
Go to the documentation of this file.
1
3#pragma once
4
5#include "aligator/fwd.hpp"
6
7namespace aligator {
8
10template <typename _Scalar> struct StageDataTpl {
11 using Scalar = _Scalar;
13
18
20 std::vector<shared_ptr<StageFunctionData>> constraint_data;
22 shared_ptr<CostDataAbstract> cost_data;
23 // Data for the system dynamics.
24 shared_ptr<DynamicsData> dynamics_data;
25
30 explicit StageDataTpl(const StageModel &stage_model);
31
32 virtual ~StageDataTpl() = default;
33
35 virtual void checkData();
36};
37
38} // namespace aligator
39
40#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
41#include "aligator/core/stage-data.txx"
42#endif
Forward declarations.
Main package namespace.
Data struct for CostAbstractTpl.
Definition fwd.hpp:68
std::vector< shared_ptr< StageFunctionData > > constraint_data
Data structs for the functions involved in the constraints.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
shared_ptr< DynamicsData > dynamics_data
StageDataTpl(const StageModel &stage_model)
Constructor.
virtual void checkData()
Check data integrity.
virtual ~StageDataTpl()=default
shared_ptr< CostDataAbstract > cost_data
Data for the running costs.
Base struct for function data.
Definition fwd.hpp:62
A stage in the control problem.
Definition fwd.hpp:93