aligator  0.10.0
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
5#include "aligator/fwd.hpp"
6
7namespace aligator {
8
10template <typename _Scalar> struct TrajOptDataTpl {
11 using Scalar = _Scalar;
16
19
21 shared_ptr<StageFunctionData> init_data;
23 std::vector<shared_ptr<StageData>> stage_data;
25 shared_ptr<CostData> term_cost_data;
27 std::vector<shared_ptr<StageFunctionData>> term_cstr_data;
28
29 inline std::size_t numSteps() const { return stage_data.size(); }
30
31 TrajOptDataTpl() = default;
33};
34
38template <typename Scalar>
40
41} // namespace aligator
42
43#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
44#include "aligator/core/traj-opt-data.txx"
45#endif
Forward declarations.
Main package namespace.
Scalar computeTrajectoryCost(const TrajOptDataTpl< Scalar > &problem_data)
Helper for computing the trajectory cost (from pre-computed problem data).
Data struct for CostAbstractTpl.
Definition fwd.hpp:65
Data struct for stage models StageModelTpl.
Definition fwd.hpp:93
Base struct for function data.
Definition fwd.hpp:59
Problem data struct.
Definition fwd.hpp:107
Scalar cost_
Current cost in the TO problem.
shared_ptr< CostData > term_cost_data
Terminal cost data.
std::size_t numSteps() const
TrajOptDataTpl(const TrajOptProblemTpl< Scalar > &problem)
std::vector< shared_ptr< StageFunctionData > > term_cstr_data
Terminal constraint data.
shared_ptr< StageFunctionData > init_data
Data for the initial condition.
std::vector< shared_ptr< StageData > > stage_data
Data structs for each stage of the problem.
Trajectory optimization problem.
Definition fwd.hpp:104