30 #ifndef TOWR_COSTS_NODE_COST_H_ 31 #define TOWR_COSTS_NODE_COST_H_ 56 NodeCost (
const std::string& nodes_id,
Dx deriv,
int dim,
double weight);
61 double GetCost ()
const override;
64 std::shared_ptr<NodesVariables>
nodes_;
Composite::Ptr VariablesPtr
void InitVariableDependedQuantities(const VariablesPtr &x) override
virtual ~NodeCost()=default
double GetCost() const override
NodeCost(const std::string &nodes_id, Dx deriv, int dim, double weight)
Constructs a cost term for the optimization problem.
Eigen::SparseMatrix< double, Eigen::RowMajor > Jacobian
std::shared_ptr< NodesVariables > nodes_
void FillJacobianBlock(std::string var_set, Jacobian &) const override
Assigns a cost to node values.
Dx
< the values or derivative. For motions e.g. position, velocity, ...