diff --git a/include/hpp/manipulation/graph/node-selector.hh b/include/hpp/manipulation/graph/node-selector.hh index 2b1b218f4217196a24209bce445159bc4ca06d21..df4144c241ba7f625afdc88fae1c8be046c24cb0 100644 --- a/include/hpp/manipulation/graph/node-selector.hh +++ b/include/hpp/manipulation/graph/node-selector.hh @@ -46,6 +46,17 @@ namespace hpp { std::ostream& print (std::ostream& os) const; /// Should never be called. + virtual void addNumericalConstraint (const core::DifferentiableFunctionPtr_t& /* function */) + { + HPP_THROW_EXCEPTION (Bad_function_call, "This component does not have constraints."); + } + + /// Should never be called. + virtual void addLockedDofConstraint (const core::LockedDof& /* constraint */) + { + HPP_THROW_EXCEPTION (Bad_function_call, "This component does not have constraints."); + } + protected: /// Initialization of the object. void init (const NodeSelectorPtr_t& weak);