Go to the documentation of this file.00001 #ifndef _MPC_H_
00002 #define _MPC_H_
00003
00004 #include <mpc/types.h>
00005 #include <mpc/dynamics.h>
00006
00007 #include <functional>
00008
00009 namespace MPC {
00010
00011
00012 int forwardPass(const VectorT &x0, const MatrixT &u, const LocalValueFunction &v, const Trajectory &in, Trajectory &out, float alpha);
00013 int backwardPass(const TrajectoryDeriv &d, LocalValueFunction &v, float lam);
00014
00015
00016 bool DDP_init(Dynamics dyn, DynamicsD dynd, CostFunction cost, CostFunctionD costd);
00017
00018
00019 void DDP(const VectorT &x0, const MatrixT &u0, const DDPParams ¶ms, const int maxIter, Trajectory &t);
00020 }
00021 #endif