10 #ifndef CROCODDYL_CORE_CONTROLS_POLY_ZERO_HPP_
11 #define CROCODDYL_CORE_CONTROLS_POLY_ZERO_HPP_
13 #include "crocoddyl/core/control-base.hpp"
14 #include "crocoddyl/core/fwd.hpp"
15 #include "crocoddyl/core/utils/exception.hpp"
36 template <
typename _Scalar>
40 typedef _Scalar Scalar;
46 typedef typename MathBase::VectorXs VectorXs;
47 typedef typename MathBase::MatrixXs MatrixXs;
65 const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
66 const Scalar t,
const Eigen::Ref<const VectorXs>& u)
const;
79 const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
80 const Scalar t,
const Eigen::Ref<const VectorXs>& u)
const;
87 virtual boost::shared_ptr<ControlParametrizationDataAbstract>
createData();
98 const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
99 const Scalar t,
const Eigen::Ref<const VectorXs>& w)
const;
111 const Eigen::Ref<const VectorXs>& w_ub,
112 Eigen::Ref<VectorXs> u_lb,
113 Eigen::Ref<VectorXs> u_ub)
const;
129 const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
130 const Eigen::Ref<const MatrixXs>& A, Eigen::Ref<MatrixXs> out,
131 const AssignmentOp op = setto)
const;
147 const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
148 const Eigen::Ref<const MatrixXs>& A, Eigen::Ref<MatrixXs> out,
149 const AssignmentOp op = setto)
const;
161 #include "crocoddyl/core/controls/poly-zero.hxx"
Abstract class for the control trajectory parametrization.
std::size_t nw_
Control dimension.
std::size_t nu_
Control parameters dimension.
A polynomial function of time of degree zero, that is a constant.
virtual void calc(const boost::shared_ptr< ControlParametrizationDataAbstract > &data, const Scalar t, const Eigen::Ref< const VectorXs > &u) const
Get the value of the control at the specified time.
virtual void multiplyJacobianTransposeBy(const boost::shared_ptr< ControlParametrizationDataAbstract > &data, const Eigen::Ref< const MatrixXs > &A, Eigen::Ref< MatrixXs > out, const AssignmentOp op=setto) const
Compute the product between the transposed Jacobian of the control (with respect to the parameters) a...
virtual void convertBounds(const Eigen::Ref< const VectorXs > &w_lb, const Eigen::Ref< const VectorXs > &w_ub, Eigen::Ref< VectorXs > u_lb, Eigen::Ref< VectorXs > u_ub) const
Map the specified bounds from the control space to the parameter space.
virtual void multiplyByJacobian(const boost::shared_ptr< ControlParametrizationDataAbstract > &data, const Eigen::Ref< const MatrixXs > &A, Eigen::Ref< MatrixXs > out, const AssignmentOp op=setto) const
Compute the product between a specified matrix and the Jacobian of the control (with respect to the p...
ControlParametrizationModelPolyZeroTpl(const std::size_t nw)
Initialize the poly-zero control parametrization.
virtual void params(const boost::shared_ptr< ControlParametrizationDataAbstract > &data, const Scalar t, const Eigen::Ref< const VectorXs > &w) const
Get a value of the control parameters such that the control at the specified time t is equal to the s...
virtual void calcDiff(const boost::shared_ptr< ControlParametrizationDataAbstract > &data, const Scalar t, const Eigen::Ref< const VectorXs > &u) const
Get the value of the Jacobian of the control with respect to the parameters.
virtual boost::shared_ptr< ControlParametrizationDataAbstract > createData()
Create the control-parametrization data.