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

Graph::configConstraint and Graph::pathConstraint return a ConstraintSet

parent d76ac3fd
No related branches found
No related tags found
No related merge requests found
...@@ -53,19 +53,19 @@ namespace hpp { ...@@ -53,19 +53,19 @@ namespace hpp {
/// Constraint to project onto the Nodes_t. /// Constraint to project onto the Nodes_t.
/// \param the Nodes_t on which to project. /// \param the Nodes_t on which to project.
/// \return The initialized projector. /// \return The initialized projector.
virtual ConstraintPtr_t configConstraint (const Nodes_t& nodes); virtual ConstraintSetPtr_t configConstraint (const Nodes_t& nodes);
/// Constraint to project onto the same leaf as config. /// Constraint to project onto the same leaf as config.
/// \param edges a list of edges defining the foliation. /// \param edges a list of edges defining the foliation.
/// \param config Configuration that will initialize the projector. /// \param config Configuration that will initialize the projector.
/// \return The initialized projector. /// \return The initialized projector.
virtual ConstraintPtr_t configConstraint (const Edges_t& edges, ConfigurationIn_t config); virtual ConstraintSetPtr_t configConstraint (const Edges_t& edges, ConfigurationIn_t config);
/// Constraint to project a path. /// Constraint to project a path.
/// \param edges a list of edges defining the foliation. /// \param edges a list of edges defining the foliation.
/// \param config Configuration that will initialize the constraint. /// \param config Configuration that will initialize the constraint.
/// \return The initialized constraint. /// \return The initialized constraint.
virtual ConstraintPtr_t pathConstraint (const Edges_t& edges, ConfigurationIn_t config); virtual ConstraintSetPtr_t pathConstraint (const Edges_t& edges, ConfigurationIn_t config);
/// Return the NodeSelector with the given name if any, /// Return the NodeSelector with the given name if any,
/// NULL pointer if not found. /// NULL pointer if not found.
......
...@@ -101,7 +101,7 @@ namespace hpp { ...@@ -101,7 +101,7 @@ namespace hpp {
return NodeSelectorPtr_t(); return NodeSelectorPtr_t();
} }
ConstraintPtr_t Graph::configConstraint (const Nodes_t& nodes) ConstraintSetPtr_t Graph::configConstraint (const Nodes_t& nodes)
{ {
ConstraintSetPtr_t constraint = ConstraintSet::create (robot (), name ()); ConstraintSetPtr_t constraint = ConstraintSet::create (robot (), name ());
...@@ -120,7 +120,7 @@ namespace hpp { ...@@ -120,7 +120,7 @@ namespace hpp {
return constraint; return constraint;
} }
ConstraintPtr_t Graph::configConstraint (const Edges_t& edges, ConfigurationIn_t config) ConstraintSetPtr_t Graph::configConstraint (const Edges_t& edges, ConfigurationIn_t config)
{ {
ConstraintSetPtr_t constraint = ConstraintSet::create (robot (), name ()); ConstraintSetPtr_t constraint = ConstraintSet::create (robot (), name ());
...@@ -144,7 +144,7 @@ namespace hpp { ...@@ -144,7 +144,7 @@ namespace hpp {
return constraint; return constraint;
} }
ConstraintPtr_t Graph::pathConstraint (const Edges_t& edges, ConfigurationIn_t config) ConstraintSetPtr_t Graph::pathConstraint (const Edges_t& edges, ConfigurationIn_t config)
{ {
ConstraintSetPtr_t constraint = ConstraintSet::create (robot (), name ()); ConstraintSetPtr_t constraint = ConstraintSet::create (robot (), name ());
......
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