44 #ifndef ILQGAMES_DYNAMICS_SINGLE_PLAYER_DYNAMICAL_SYSTEM_H 45 #define ILQGAMES_DYNAMICS_SINGLE_PLAYER_DYNAMICAL_SYSTEM_H 47 #include <ilqgames/utils/types.h> 56 virtual VectorXf Evaluate(Time t,
const VectorXf& x,
57 const VectorXf& u)
const = 0;
64 virtual void Linearize(Time t,
const VectorXf& x,
const VectorXf& u,
65 Eigen::Ref<MatrixXf> A,
66 Eigen::Ref<MatrixXf> B)
const = 0;
69 virtual float DistanceBetween(
const VectorXf& x0,
const VectorXf& x1)
const {
70 return (x0 - x1).squaredNorm();
74 Dimension XDim()
const {
return xdim_; }
75 Dimension UDim()
const {
return udim_; }
76 virtual std::vector<Dimension> PositionDimensions()
const = 0;
80 : xdim_(xdim), udim_(udim) {}
83 const Dimension xdim_;
84 const Dimension udim_;