aligator  0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
traj-opt-data.hpp
Go to the documentation of this file.
1
3#pragma once
4
6
7namespace aligator {
8
10template <typename _Scalar> struct TrajOptDataTpl {
11 using Scalar = _Scalar;
13 using StageFunctionData = StageFunctionDataTpl<Scalar>;
14 using ConstraintType = StageConstraintTpl<Scalar>;
15 using StageData = StageDataTpl<Scalar>;
16 using CostData = CostDataAbstractTpl<Scalar>;
17
20
22 shared_ptr<StageFunctionData> init_data;
24 std::vector<shared_ptr<StageData>> stage_data;
26 shared_ptr<CostData> term_cost_data;
28 std::vector<shared_ptr<StageFunctionData>> term_cstr_data;
29
30 inline std::size_t numSteps() const { return stage_data.size(); }
31
32 TrajOptDataTpl() = default;
33 TrajOptDataTpl(const TrajOptProblemTpl<Scalar> &problem);
34};
35
36} // namespace aligator
37
38#include "aligator/core/traj-opt-data.hxx"
39
40#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
41#include "aligator/core/traj-opt-data.txx"
42#endif
Main package namespace.
Problem data struct.
Scalar cost_
Current cost in the TO problem.
TrajOptDataTpl(const TrajOptProblemTpl< Scalar > &problem)
std::vector< shared_ptr< StageFunctionData > > term_cstr_data
Terminal constraint data.
shared_ptr< CostData > term_cost_data
Terminal cost data.
std::vector< shared_ptr< StageData > > stage_data
Data structs for each stage of the problem.
std::size_t numSteps() const
shared_ptr< StageFunctionData > init_data
Data for the initial condition.
StageConstraintTpl< Scalar > ConstraintType