10#ifndef CROCODDYL_CORE_CONTROLS_POLY_ONE_HPP_ 
   11#define CROCODDYL_CORE_CONTROLS_POLY_ONE_HPP_ 
   13#include "crocoddyl/core/control-base.hpp" 
   14#include "crocoddyl/core/fwd.hpp" 
   40template <
typename _Scalar>
 
   44  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 
   48  typedef _Scalar Scalar;
 
   54  typedef typename MathBase::VectorXs VectorXs;
 
   55  typedef typename MathBase::MatrixXs MatrixXs;
 
   73      const std::shared_ptr<ControlParametrizationDataAbstract>& data,
 
   74      const Scalar t, 
const Eigen::Ref<const VectorXs>& u) 
const override;
 
   87      const std::shared_ptr<ControlParametrizationDataAbstract>& data,
 
   88      const Scalar t, 
const Eigen::Ref<const VectorXs>& u) 
const override;
 
   95  virtual std::shared_ptr<ControlParametrizationDataAbstract> 
createData()
 
  107      const std::shared_ptr<ControlParametrizationDataAbstract>& data,
 
  108      const Scalar t, 
const Eigen::Ref<const VectorXs>& w) 
const override;
 
  120                             const Eigen::Ref<const VectorXs>& w_ub,
 
  121                             Eigen::Ref<VectorXs> u_lb,
 
  122                             Eigen::Ref<VectorXs> u_ub) 
const override;
 
  138      const std::shared_ptr<ControlParametrizationDataAbstract>& data,
 
  139      const Eigen::Ref<const MatrixXs>& A, Eigen::Ref<MatrixXs> out,
 
  140      const AssignmentOp = setto) 
const override;
 
  156      const std::shared_ptr<ControlParametrizationDataAbstract>& data,
 
  157      const Eigen::Ref<const MatrixXs>& A, Eigen::Ref<MatrixXs> out,
 
  158      const AssignmentOp = setto) 
const override;
 
  160  template <
typename NewScalar>
 
  163  virtual void print(std::ostream& os) 
const override;
 
 
  170template <
typename _Scalar>
 
  173  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 
  175  typedef _Scalar Scalar;
 
  178  typedef typename MathBase::Vector2s Vector2s;
 
  180  template <
template <
typename Scalar> 
class Model>
 
 
  199#include "crocoddyl/core/controls/poly-one.hxx" 
  201CROCODDYL_DECLARE_EXTERN_TEMPLATE_CLASS(
 
  203CROCODDYL_DECLARE_EXTERN_TEMPLATE_STRUCT(
 
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 one, that is a linear function.
virtual void calcDiff(const std::shared_ptr< ControlParametrizationDataAbstract > &data, const Scalar t, const Eigen::Ref< const VectorXs > &u) const override
Get the value of the Jacobian of the control with respect to the parameters.
virtual void multiplyByJacobian(const std::shared_ptr< ControlParametrizationDataAbstract > &data, const Eigen::Ref< const MatrixXs > &A, Eigen::Ref< MatrixXs > out, const AssignmentOp=setto) const override
Compute the product between a specified matrix and the Jacobian of the control (with respect to the p...
virtual void calc(const std::shared_ptr< ControlParametrizationDataAbstract > &data, const Scalar t, const Eigen::Ref< const VectorXs > &u) const override
Get the value of the control at the specified time.
virtual std::shared_ptr< ControlParametrizationDataAbstract > createData() override
Create the control-parametrization data.
virtual void multiplyJacobianTransposeBy(const std::shared_ptr< ControlParametrizationDataAbstract > &data, const Eigen::Ref< const MatrixXs > &A, Eigen::Ref< MatrixXs > out, const AssignmentOp=setto) const override
Compute the product between the transposed Jacobian of the control (with respect to the parameters) a...
ControlParametrizationModelPolyOneTpl(const std::size_t nw)
Initialize the poly-one control parametrization.
virtual void params(const std::shared_ptr< ControlParametrizationDataAbstract > &data, const Scalar t, const Eigen::Ref< const VectorXs > &w) const override
Get a value of the control parameters such that the control at the specified time t is equal to the s...
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 override
Map the specified bounds from the control space to the parameter space.
virtual void print(std::ostream &os) const override
Print relevant information of the control model.
VectorXs w
value of the differential control
VectorXs u
value of the control parameters
Vector2s c
Coefficients of the linear control that depends on time.