aligator  0.12.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.
shared_ptr< DynamicsData > dynamics_data
std::vector< shared_ptr< StageFunctionData > > constraint_data
virtual ~StageDataTpl()=default
StageDataTpl(const StageModel &stage_model)
Constructor.
DynamicsDataTpl< Scalar > DynamicsData
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
CostDataAbstractTpl< Scalar > CostDataAbstract
StageModelTpl< Scalar > StageModel
StageFunctionDataTpl< Scalar > StageFunctionData
virtual void checkData()
Check data integrity.
shared_ptr< CostDataAbstract > cost_data
Base struct for function data.
A stage in the control problem.