A sample combination of variables, cost and constraints. More...
#include <nlp_formulation.h>
Public Types | |
using | ContraintPtrVec = std::vector< ifopt::ConstraintSet::Ptr > |
using | CostPtrVec = std::vector< ifopt::CostTerm::Ptr > |
using | EEPos = std::vector< Eigen::Vector3d > |
using | VariablePtrVec = std::vector< ifopt::VariableSet::Ptr > |
using | Vector3d = Eigen::Vector3d |
Public Member Functions | |
ContraintPtrVec | GetConstraints (const SplineHolder &spline_holder) const |
The ifopt constraints that enforce feasible motions. More... | |
ContraintPtrVec | GetCosts () const |
The ifopt costs to tune the motion. More... | |
VariablePtrVec | GetVariableSets (SplineHolder &spline_holder) |
The ifopt variable sets that will be optimized over. More... | |
NlpFormulation () | |
virtual | ~NlpFormulation ()=default |
Public Attributes | |
BaseState | final_base_ |
BaseState | initial_base_ |
EEPos | initial_ee_W_ |
RobotModel | model_ |
Parameters | params_ |
HeightMap::Ptr | terrain_ |
A sample combination of variables, cost and constraints.
This is one example of how to combine the variables, constraints and costs provided by this library. Additional variables or constraints can be added to the NLP, or existing elements replaced to find a more powerful/general formulation. This formulation was used to generate the motions described in this paper: https://ieeexplore.ieee.org/document/8283570/
Definition at line 73 of file nlp_formulation.h.
using towr::NlpFormulation::ContraintPtrVec = std::vector<ifopt::ConstraintSet::Ptr> |
Definition at line 76 of file nlp_formulation.h.
using towr::NlpFormulation::CostPtrVec = std::vector<ifopt::CostTerm::Ptr> |
Definition at line 77 of file nlp_formulation.h.
using towr::NlpFormulation::EEPos = std::vector<Eigen::Vector3d> |
Definition at line 78 of file nlp_formulation.h.
using towr::NlpFormulation::VariablePtrVec = std::vector<ifopt::VariableSet::Ptr> |
Definition at line 75 of file nlp_formulation.h.
using towr::NlpFormulation::Vector3d = Eigen::Vector3d |
Definition at line 79 of file nlp_formulation.h.
towr::NlpFormulation::NlpFormulation | ( | ) |
Definition at line 51 of file nlp_formulation.cc.
|
virtualdefault |
|
private |
Definition at line 212 of file nlp_formulation.cc.
NlpFormulation::ContraintPtrVec towr::NlpFormulation::GetConstraints | ( | const SplineHolder & | spline_holder | ) | const |
The ifopt constraints that enforce feasible motions.
[in] | uses | the fully-constructed splines for initialization of constraints. |
Definition at line 201 of file nlp_formulation.cc.
|
private |
Definition at line 345 of file nlp_formulation.cc.
NlpFormulation::ContraintPtrVec towr::NlpFormulation::GetCosts | ( | ) | const |
The ifopt costs to tune the motion.
Definition at line 334 of file nlp_formulation.cc.
NlpFormulation::VariablePtrVec towr::NlpFormulation::GetVariableSets | ( | SplineHolder & | spline_holder | ) |
The ifopt variable sets that will be optimized over.
Definition at line 64 of file nlp_formulation.cc.
|
private |
Definition at line 320 of file nlp_formulation.cc.
|
private |
Definition at line 230 of file nlp_formulation.cc.
|
private |
Definition at line 96 of file nlp_formulation.cc.
|
private |
Definition at line 184 of file nlp_formulation.cc.
|
private |
Definition at line 238 of file nlp_formulation.cc.
|
private |
Definition at line 366 of file nlp_formulation.cc.
|
private |
Definition at line 128 of file nlp_formulation.cc.
|
private |
Definition at line 292 of file nlp_formulation.cc.
|
private |
Definition at line 355 of file nlp_formulation.cc.
|
private |
Definition at line 159 of file nlp_formulation.cc.
|
private |
Definition at line 248 of file nlp_formulation.cc.
|
private |
Definition at line 307 of file nlp_formulation.cc.
|
private |
Definition at line 279 of file nlp_formulation.cc.
|
private |
Definition at line 265 of file nlp_formulation.cc.
BaseState towr::NlpFormulation::final_base_ |
Definition at line 101 of file nlp_formulation.h.
BaseState towr::NlpFormulation::initial_base_ |
Definition at line 100 of file nlp_formulation.h.
EEPos towr::NlpFormulation::initial_ee_W_ |
Definition at line 102 of file nlp_formulation.h.
RobotModel towr::NlpFormulation::model_ |
Definition at line 103 of file nlp_formulation.h.
Parameters towr::NlpFormulation::params_ |
Definition at line 105 of file nlp_formulation.h.
HeightMap::Ptr towr::NlpFormulation::terrain_ |
Definition at line 104 of file nlp_formulation.h.