#include <final_state_constraints.h>

Public Types | |
| using | ConstPtr = std::shared_ptr< const TerminalBall > |
| using | Ptr = std::shared_ptr< TerminalBall > |
Public Types inherited from corbo::FinalStageConstraint | |
| using | ConstPtr = std::shared_ptr< const FinalStageConstraint > |
| using | Ptr = std::shared_ptr< FinalStageConstraint > |
Public Types inherited from corbo::StageFunction | |
| using | ConstPtr = std::shared_ptr< const StageFunction > |
| using | Ptr = std::shared_ptr< StageFunction > |
Public Member Functions | |
| bool | checkParameters (int state_dim, int control_dim, FinalStageCost::ConstPtr final_stage_cost, std::stringstream *issues) const override |
| void | computeNonIntegralStateTerm (int k, const Eigen::Ref< const Eigen::VectorXd > &x_k, Eigen::Ref< Eigen::VectorXd > cost) const override |
| double | getGamma () |
| FinalStageConstraint::Ptr | getInstance () const override |
| Return a newly created shared instance of the implemented class. More... | |
| int | getNonIntegralStateTermDimension (int k) const override |
| const Eigen::MatrixXd & | getWeightS () const |
| bool | isEqualityConstraint () const override |
| void | setGamma (double gamma) |
| bool | setWeightS (const Eigen::DiagonalMatrix< double, -1 > &S) |
| bool | setWeightS (const Eigen::Ref< const Eigen::MatrixXd > &S) |
| TerminalBall ()=default | |
| TerminalBall (const Eigen::Ref< const Eigen::MatrixXd > &S, double gamma) | |
| bool | update (int n, double t, ReferenceTrajectoryInterface &xref, ReferenceTrajectoryInterface &uref, ReferenceTrajectoryInterface *sref, bool single_dt, const Eigen::VectorXd &x0, FinalStageCost::ConstPtr final_stage_cost, StagePreprocessor::Ptr stage_preprocessor, const std::vector< double > &dts, const DiscretizationGridInterface *) override |
Public Member Functions inherited from corbo::FinalStageConstraint | |
| bool | hasIntegralTerms (int k) const final |
| bool | hasNonIntegralTerms (int k) const final |
| bool | isInequalityConstraint () const |
| bool | update (int n, double t, ReferenceTrajectoryInterface &xref, ReferenceTrajectoryInterface &uref, ReferenceTrajectoryInterface *sref, bool single_dt, const Eigen::VectorXd &x0, StagePreprocessor::Ptr stage_preprocessor, const std::vector< double > &dts, const DiscretizationGridInterface *grid) final |
Public Member Functions inherited from corbo::StageFunction | |
| virtual bool | checkParameters (int state_dim, int control_dim, std::stringstream *issues) const |
| virtual void | computeConcatenatedNonIntegralStateControlTerms (int k, const Eigen::Ref< const Eigen::VectorXd > &x_k, const Eigen::Ref< const Eigen::VectorXd > &u_k, double dt_k, Eigen::Ref< Eigen::VectorXd > cost, bool lsq_mode=false) const |
| virtual void | computeConcatenatedNonIntegralStateTerms (int k, const Eigen::Ref< const Eigen::VectorXd > &x_k, const Eigen::Ref< const Eigen::VectorXd > &u_k, double dt_k, Eigen::Ref< Eigen::VectorXd > cost, bool lsq_mode=false) const |
| virtual void | computeNonIntegralStateDtTerm (int k, const Eigen::Ref< const Eigen::VectorXd > &x_k, double dt_k, Eigen::Ref< Eigen::VectorXd > cost) const |
| computeNonIntegralStateDtTerm: warning: currently only supported for full discretization More... | |
| virtual int | getConcatenatedNonIntegralStateControlTermDimension (int k, bool lsq_mode=false) const |
| virtual int | getConcatenatedNonIntegralStateTermDimension (int k, bool lsq_mode=false) const |
| virtual int | getNonIntegralStateDtTermDimension (int k) const |
| virtual bool | isLinearNonIntegralControlTerm (int k) const |
| virtual bool | isLinearNonIntegralDtTerm (int k) const |
| virtual bool | isLinearNonIntegralStateTerm (int k) const |
| virtual bool | isLsqFormNonIntegralControlTerm (int k) const |
| virtual bool | isLsqFormNonIntegralDtTerm (int k) const |
| virtual bool | isLsqFormNonIntegralStateTerm (int k) const |
| virtual | ~StageFunction ()=default |
| Default destructor. More... | |
Protected Attributes | |
| bool | _diagonal_mode = false |
| bool | _diagonal_mode_intentionally = false |
| double | _gamma = 0.0 |
| Eigen::MatrixXd | _S |
| Eigen::DiagonalMatrix< double, -1 > | _S_diag |
| const ReferenceTrajectoryInterface * | _x_ref = nullptr |
| bool | _zero_x_ref = false |
Definition at line 60 of file final_state_constraints.h.
| using corbo::TerminalBall::ConstPtr = std::shared_ptr<const TerminalBall> |
Definition at line 86 of file final_state_constraints.h.
| using corbo::TerminalBall::Ptr = std::shared_ptr<TerminalBall> |
Definition at line 85 of file final_state_constraints.h.
|
default |
|
inline |
Definition at line 90 of file final_state_constraints.h.
|
overridevirtual |
Reimplemented from corbo::FinalStageConstraint.
Reimplemented in corbo::TerminalBallInheritFromCost.
Definition at line 103 of file final_state_constraints.cpp.
|
overridevirtual |
Implements corbo::FinalStageConstraint.
Reimplemented in corbo::TerminalBallInheritFromCost.
Definition at line 82 of file final_state_constraints.cpp.
|
inline |
Definition at line 107 of file final_state_constraints.h.
|
inlineoverridevirtual |
Return a newly created shared instance of the implemented class.
Implements corbo::FinalStageConstraint.
Reimplemented in corbo::TerminalBallInheritFromCost.
Definition at line 96 of file final_state_constraints.h.
Implements corbo::FinalStageConstraint.
Reimplemented in corbo::TerminalBallInheritFromCost.
Definition at line 100 of file final_state_constraints.h.
|
inline |
Definition at line 104 of file final_state_constraints.h.
|
inlineoverridevirtual |
Implements corbo::FinalStageConstraint.
Definition at line 98 of file final_state_constraints.h.
|
inline |
Definition at line 106 of file final_state_constraints.h.
| bool corbo::TerminalBall::setWeightS | ( | const Eigen::DiagonalMatrix< double, -1 > & | S | ) |
Definition at line 71 of file final_state_constraints.cpp.
| bool corbo::TerminalBall::setWeightS | ( | const Eigen::Ref< const Eigen::MatrixXd > & | S | ) |
Definition at line 57 of file final_state_constraints.cpp.
|
inlineoverridevirtual |
Reimplemented from corbo::FinalStageConstraint.
Reimplemented in corbo::TerminalBallInheritFromCost.
Definition at line 111 of file final_state_constraints.h.
|
protected |
Definition at line 137 of file final_state_constraints.h.
|
protected |
Definition at line 138 of file final_state_constraints.h.
|
protected |
Definition at line 132 of file final_state_constraints.h.
|
protected |
Definition at line 130 of file final_state_constraints.h.
|
protected |
Definition at line 131 of file final_state_constraints.h.
|
protected |
Definition at line 134 of file final_state_constraints.h.
|
protected |
Definition at line 135 of file final_state_constraints.h.