Classes |
struct | DDPParams |
struct | Deriv |
struct | LocalValueFunction |
struct | Trajectory |
Typedefs |
typedef std::function< float(const
VectorT &, const VectorT &)> | CostFunction |
typedef std::function< void(const
VectorT &, const VectorT
&, Deriv &)> | CostFunctionD |
typedef std::function< void(const
VectorT &, const VectorT
&, VectorT &)> | Dynamics |
typedef std::function< void(const
VectorT &, const VectorT
&, Deriv &)> | DynamicsD |
typedef Eigen::MatrixXf | MatrixT |
typedef std::vector< Deriv > | TrajectoryDeriv |
typedef Eigen::VectorXf | VectorT |
Functions |
int | backwardPass (const TrajectoryDeriv &d, LocalValueFunction &v, float lam) |
void | DDP (const VectorT &x0, const MatrixT &u0, const DDPParams ¶ms, const int maxIter, Trajectory &t) |
bool | DDP_init (Dynamics dyn, DynamicsD dynd, CostFunction cost, CostFunctionD costd) |
float | dynamicsAndCost (const VectorT &x, const VectorT &u) |
void | dynamicsAndCost (const VectorT &x, const VectorT &u, VectorT &xNew, float &cNew) |
void | dynamicsAndCost (const VectorT &x, const VectorT &u, MatrixT::ColXpr xNew, float &cNew) |
void | dynamicsAndCost (Trajectory &t) |
void | dynamicsAndCostDerivative (Trajectory &t, TrajectoryDeriv &d) |
int | forwardPass (const VectorT &x0, const MatrixT &u, const LocalValueFunction &v, const Trajectory &in, Trajectory &out, float alpha) |
bool | setCostFunction (CostFunction f, CostFunctionD fd) |
bool | setDynamicFunction (Dynamics f, DynamicsD fd) |
bool | update_lam_dlam (float &lam, float &dlam, const DDPParams ¶ms) |
MatrixT | weightedMatrixAvg (const VectorT &a, const std::vector< MatrixT > &B) |
Variables |
static CostFunction | cost |
static CostFunctionD | costd |
static Dynamics | dyn |
static DynamicsD | dynd |