35 std::string node_variable_name)
36 :ConstraintSet(kSpecifyLater,
"splineacc-" + node_variable_name)
41 n_dim_ = spline->GetPoint(0.0).p().rows();
43 T_ = spline->GetPolyDurations();
60 g.segment(j*
n_dim_, n_dim_) = acc_prev - acc_next;
77 jac.middleRows(j*
n_dim_, n_dim_) = acc_prev - acc_next;
NodeSpline::Ptr spline_
a spline comprised of polynomials
static const Bounds BoundZero
int n_dim_
dimensions that this polynomial represents (e.g. x,y).
std::string node_variables_id_
std::shared_ptr< NodeSpline > Ptr
int n_junctions_
polynomial parameterized node values
VectorXd GetValues() const override
std::vector< double > T_
Duration of each polynomial in spline.
void SetRows(int num_rows)
Eigen::SparseMatrix< double, Eigen::RowMajor > Jacobian
VecBound GetBounds() const override
void FillJacobianBlock(std::string var_set, Jacobian &) const override
std::vector< Bounds > VecBound
SplineAccConstraint(const NodeSpline::Ptr &spline, std::string name)