10template <
typename _Scalar>
struct TrajOptDataTpl {
38template <
typename Scalar>
43#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
44#include "aligator/core/traj-opt-data.txx"
Scalar computeTrajectoryCost(const TrajOptDataTpl< Scalar > &problem_data)
Helper for computing the trajectory cost (from pre-computed problem data).
Data struct for CostAbstractTpl.
Data struct for stage models StageModelTpl.
Base struct for function data.
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.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
std::vector< shared_ptr< StageData > > stage_data
Data structs for each stage of the problem.
Trajectory optimization problem.