Skip to content
Snippets Groups Projects
Commit 18517c3a authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add maxIterations, errorThreshold to class Graph

parent d9f1cd51
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,45 @@ namespace hpp {
/// Print the object in a stream.
std::ostream& print (std::ostream& os) const;
/// Add a core::DifferentiableFunction function.
virtual void addNumericalConstraint (const core::DifferentiableFunctionPtr_t& /* function */)
{
HPP_THROW_EXCEPTION (Bad_function_call, "This component does not have constraints.");
}
/// Add a core::LockedDof constraint.
virtual void addLockedDofConstraint (const core::LockedDof& /* constraint */)
{
HPP_THROW_EXCEPTION (Bad_function_call, "This component does not have constraints.");
}
/// Set maximal number of iterations
void maxIterations (size_type iterations)
{
maxIterations_ = iterations;
}
/// Get maximal number of iterations in config projector
size_type maxIterations () const
{
return maxIterations_;
}
/// Set error threshold
void errorThreshold (const value_type& threshold)
{
errorThreshold_ = threshold;
}
/// Get errorimal number of threshold in config projector
value_type errorThreshold () const
{
return errorThreshold_;
}
/// Get the robot.
const RobotPtr_t& robot () const
{
return robot_;
}
protected:
/// Initialization of the object.
void init (const GraphWkPtr_t& weak, RobotPtr_t robot);
......@@ -190,6 +228,9 @@ namespace hpp {
/// Weak pointer to itself.
GraphWkPtr_t wkPtr_;
value_type errorThreshold_;
size_type maxIterations_;
}; // Class Graph
} // namespace graph
} // namespace manipulation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment