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

Use ConfigurationIn_t instead of const Configuration_t.

parent 9cd6813b
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ namespace hpp {
NodeSelectorPtr_t createNodeSelector ();
/// Returns the states of a configuration.
NodePtr_t getNode (const Configuration_t config) const;
NodePtr_t getNode (ConfigurationIn_t config) const;
/// Get possible edges between two nodes.
Edges_t getEdges (const NodePtr_t& from, const NodePtr_t& to) const;
......
......@@ -37,7 +37,7 @@ namespace hpp {
NodePtr_t createNode ();
/// Returns the state of a configuration.
NodePtr_t getNode(const Configuration_t config) const;
NodePtr_t getNode(ConfigurationIn_t config) const;
/// Select randomly an outgoing edge of the given node.
virtual EdgePtr_t chooseEdge(const NodePtr_t& node) const;
......
......@@ -72,7 +72,7 @@ namespace hpp {
return robot_;
}
NodePtr_t Graph::getNode (const Configuration_t config) const
NodePtr_t Graph::getNode (ConfigurationIn_t config) const
{
return nodeSelector_->getNode (config);
}
......
......@@ -44,7 +44,7 @@ namespace hpp {
return newNode;
}
NodePtr_t NodeSelector::getNode(const Configuration_t config) const
NodePtr_t NodeSelector::getNode(ConfigurationIn_t config) const
{
for (Nodes_t::const_iterator it = orderedStates_.begin();
orderedStates_.end() != it; ++it)
......
......@@ -53,7 +53,7 @@ namespace hpp {
return newEdge;
}
bool Node::contains (ConfigurationIn_t config)
bool Node::contains (ConfigurationIn_t config) const
{
return configConstraint()->isSatisfied (config);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment