6#include <fmt/ostream.h>
23 std::vector<VectorXs>
lams;
25 std::vector<VectorXs>
vs;
43 const ConstVectorRef &x0);
46template <
typename Scalar>
48 return oss << fmt::format(
"{}", self);
53template <
typename Scalar>
struct fmt::formatter<
aligator::ResultsTpl<Scalar>> {
54 constexpr auto parse(format_parse_context &ctx)
const
55 ->
decltype(ctx.begin()) {
59 auto format(
const aligator::ResultsTpl<Scalar> &self,
60 format_context &ctx)
const ->
decltype(ctx.out()) {
61 auto s = self.printBase();
62 return fmt::format_to(ctx.out(),
"Results {{{}\n}}", s);
66#ifdef ALIGATOR_ENABLE_TEMPLATE_INSTANTIATION
67#include "./results.txx"
std::ostream & operator<<(std::ostream &oss, const ExplicitDynamicsDataTpl< S > &self)
std::vector< VectorXs > us
std::vector< VectorXs > xs
std::vector< MatrixXs > gains_
ResultsTpl(ResultsTpl &&)=default
ResultsTpl(const ResultsTpl &)=delete
ResultsTpl(const TrajOptProblemTpl< Scalar > &problem)
Create the results struct from a problem (TrajOptProblemTpl) instance.
ALIGATOR_DYNAMIC_TYPEDEFS(Scalar)
std::vector< VectorXs > lams
void cycleAppend(const TrajOptProblemTpl< Scalar > &problem, const ConstVectorRef &x0)
ResultsTpl & operator=(ResultsTpl &&)=default
std::vector< VectorXs > vs
ResultsTpl & operator=(const ResultsTpl &)=delete
ResultsBaseTpl< Scalar > Base
Trajectory optimization problem.