30 #ifndef TOWR_CONSTRAINTS_TERRAIN_CONSTRAINT_H_ 31 #define TOWR_CONSTRAINTS_TERRAIN_CONSTRAINT_H_ VecBound GetBounds() const override
Composite::Ptr VariablesPtr
VectorXd GetValues() const override
std::shared_ptr< NodesVariablesPhaseBased > Ptr
std::string ee_motion_id_
the name of the endeffector variable set.
NodesVariablesPhaseBased::Ptr ee_motion_
the position of the endeffector.
Eigen::SparseMatrix< double, Eigen::RowMajor > Jacobian
Ensures the endeffectors always lays on or above terrain height.
HeightMap::Ptr terrain_
the height map of the current terrain.
void FillJacobianBlock(std::string var_set, Jacobian &) const override
std::vector< int > node_ids_
the indices of the nodes constrained.
virtual ~TerrainConstraint()=default
std::vector< Bounds > VecBound
std::shared_ptr< HeightMap > Ptr
TerrainConstraint(const HeightMap::Ptr &terrain, std::string ee_motion_id)
Constructs a terrain constraint.
void InitVariableDependedQuantities(const VariablesPtr &x) override