mpc.h
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         // NOTE: both functions should return an int notifying whether the execution diverged (see diverge parameter in ddp)
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         // NOTE: this function will be used to setup dynamics and cost function pointers 
00016         bool DDP_init(Dynamics dyn, DynamicsD dynd, CostFunction cost, CostFunctionD costd);
00017 
00018         // DDP will fill a newly optimized trajectory into t 
00019         void DDP(const VectorT &x0, const MatrixT &u0, const DDPParams &params, const int maxIter, Trajectory &t);
00020 }
00021 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


mpc
Author(s): Jost Tobias Springenberg
autogenerated on Wed Dec 26 2012 16:21:14