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

Separate definition and declaration of Graph

parent 00283f3d
No related branches found
No related tags found
No related merge requests found
......@@ -75,32 +75,20 @@ namespace hpp {
std::ostream& print (std::ostream& os) const;
/// Set maximal number of iterations
void maxIterations (size_type iterations)
{
maxIterations_ = iterations;
}
void maxIterations (size_type iterations);
/// Get maximal number of iterations in config projector
size_type maxIterations () const
{
return maxIterations_;
}
size_type maxIterations () const;
/// Set error threshold
void errorThreshold (const value_type& threshold)
{
errorThreshold_ = threshold;
}
void errorThreshold (const value_type& threshold);
/// Get errorimal number of threshold in config projector
value_type errorThreshold () const
{
return errorThreshold_;
}
value_type errorThreshold () const;
/// Get the robot.
const RobotPtr_t& robot () const
{
return robot_;
}
const RobotPtr_t& robot () const;
protected:
/// Initialization of the object.
void init (const GraphWkPtr_t& weak, RobotPtr_t robot);
......
......@@ -48,6 +48,31 @@ namespace hpp {
return newNodeSelector;
}
void Graph::maxIterations (size_type iterations)
{
maxIterations_ = iterations;
}
size_type Graph::maxIterations () const
{
return maxIterations_;
}
void Graph::errorThreshold (const value_type& threshold)
{
errorThreshold_ = threshold;
}
value_type Graph::errorThreshold () const
{
return errorThreshold_;
}
const RobotPtr_t& Graph::robot () const
{
return robot_;
}
Nodes_t Graph::getNode(const Configuration_t config)
{
Nodes_t nodes;
......
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