crocoddyl
1.9.0
Contact RObot COntrol by Differential DYnamic programming Library (Crocoddyl)
|
|
9 #ifndef CROCODDYL_CORE_CONTROLS_POLY_ZERO_HPP_
10 #define CROCODDYL_CORE_CONTROLS_POLY_ZERO_HPP_
12 #include "crocoddyl/core/fwd.hpp"
13 #include "crocoddyl/core/utils/exception.hpp"
14 #include "crocoddyl/core/control-base.hpp"
31 template <
typename _Scalar>
34 typedef _Scalar Scalar;
39 typedef typename MathBase::VectorXs VectorXs;
40 typedef typename MathBase::MatrixXs MatrixXs;
57 virtual void calc(
const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
const Scalar t,
58 const Eigen::Ref<const VectorXs>& u)
const;
69 virtual void calcDiff(
const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
const Scalar t,
70 const Eigen::Ref<const VectorXs>& u)
const;
77 virtual boost::shared_ptr<ControlParametrizationDataAbstract>
createData();
87 virtual void params(
const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
const Scalar t,
88 const Eigen::Ref<const VectorXs>& w)
const;
98 virtual void convertBounds(
const Eigen::Ref<const VectorXs>& w_lb,
const Eigen::Ref<const VectorXs>& w_ub,
99 Eigen::Ref<VectorXs> u_lb, Eigen::Ref<VectorXs> u_ub)
const;
112 virtual void multiplyByJacobian(
const boost::shared_ptr<ControlParametrizationDataAbstract>& data,
113 const Eigen::Ref<const MatrixXs>& A, Eigen::Ref<MatrixXs> out,
114 const AssignmentOp = setto)
const;
129 const Eigen::Ref<const MatrixXs>& A, Eigen::Ref<MatrixXs> out,
130 const AssignmentOp = setto)
const;
142 #include "crocoddyl/core/controls/poly-zero.hxx"
144 #endif // CROCODDYL_CORE_CONTROLS_POLY_ZERO_HPP_
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 void multiplyJacobianTransposeBy(const boost::shared_ptr< ControlParametrizationDataAbstract > &data, const Eigen::Ref< const MatrixXs > &A, Eigen::Ref< MatrixXs > out, const AssignmentOp=setto) const
Compute the product between the transposed Jacobian of the control (with respect to the parameters) a...
Abstract class for the control trajectory parametrization.
virtual void multiplyByJacobian(const boost::shared_ptr< ControlParametrizationDataAbstract > &data, const Eigen::Ref< const MatrixXs > &A, Eigen::Ref< MatrixXs > out, const AssignmentOp=setto) const
Compute the product between a specified matrix and the Jacobian of the control (with respect to the p...
std::size_t nu_
Control parameters dimension.
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.
std::size_t nw_
Control dimension.
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...
ControlParametrizationModelPolyZeroTpl(const std::size_t nw)
Initialize the poly-zero control parametrization.
virtual boost::shared_ptr< ControlParametrizationDataAbstract > createData()
Create the control-parametrization data.
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.