30 #ifndef TOWR_CONSTRAINTS_TERRAIN_CONSTRAINT_H_ 31 #define TOWR_CONSTRAINTS_TERRAIN_CONSTRAINT_H_ 33 #include <ifopt/constraint_set.h> VecBound GetBounds() const override
std::shared_ptr< PhaseNodes > Ptr
VectorXd GetValues() const override
std::string ee_motion_id_
the name of the endeffector variable set.
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
PhaseNodes::Ptr ee_motion_
the position of the endeffector.
std::shared_ptr< HeightMap > Ptr
TerrainConstraint(const HeightMap::Ptr &terrain, std::string ee_motion_id)
Constructs a terrain constraint.
virtual void InitVariableDependedQuantities(const VariablesPtr &x) override