Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-manipulation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
hpp-manipulation
Commits
eb4b73ba
Commit
eb4b73ba
authored
10 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update Graph::configConstraint and Graph::pathConstraint
parent
cf1f8164
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/hpp/manipulation/graph/graph.hh
+12
-4
12 additions, 4 deletions
include/hpp/manipulation/graph/graph.hh
src/graph/graph.cc
+14
-2
14 additions, 2 deletions
src/graph/graph.cc
with
26 additions
and
6 deletions
include/hpp/manipulation/graph/graph.hh
+
12
−
4
View file @
eb4b73ba
...
@@ -58,17 +58,25 @@ namespace hpp {
...
@@ -58,17 +58,25 @@ namespace hpp {
/// \return The initialized projector.
/// \return The initialized projector.
ConstraintSetPtr_t
configConstraint
(
const
Nodes_t
&
nodes
);
ConstraintSetPtr_t
configConstraint
(
const
Nodes_t
&
nodes
);
/// Kept for compatibility. Do not use. Use configConstraint(const Edges_t&) instead
/// \param config Configuration that will initialize the projector.
/// \return The initialized constraint.
ConstraintSetPtr_t
configConstraint
(
const
Edges_t
&
edges
,
ConfigurationIn_t
config
)
__attribute__
((
deprecated
));
/// 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.
/// \return The constraint.
/// \return The initialized projector.
ConstraintSetPtr_t
configConstraint
(
const
Edges_t
&
edges
);
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.
/// \return The constraint.
ConstraintSetPtr_t
pathConstraint
(
const
Edges_t
&
edges
);
/// Kept for compatibility. Do not use. Use pathConstraint(const Edges_t&) instead
/// \param config Configuration that will initialize the constraint.
/// \param config Configuration that will initialize the constraint.
/// \return The initialized constraint.
/// \return The initialized constraint.
ConstraintSetPtr_t
pathConstraint
(
const
Edges_t
&
edges
,
ConfigurationIn_t
config
);
ConstraintSetPtr_t
pathConstraint
(
const
Edges_t
&
edges
,
ConfigurationIn_t
config
)
__attribute__
((
deprecated
))
;
/// 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.
...
...
This diff is collapsed.
Click to expand it.
src/graph/graph.cc
+
14
−
2
View file @
eb4b73ba
...
@@ -194,6 +194,13 @@ namespace hpp {
...
@@ -194,6 +194,13 @@ namespace hpp {
}
}
ConstraintSetPtr_t
Graph
::
configConstraint
(
const
Edges_t
&
edges
,
ConfigurationIn_t
config
)
ConstraintSetPtr_t
Graph
::
configConstraint
(
const
Edges_t
&
edges
,
ConfigurationIn_t
config
)
{
ConstraintSetPtr_t
constraint
=
configConstraint
(
edges
);
constraint
->
offsetFromConfig
(
config
);
return
constraint
;
}
ConstraintSetPtr_t
Graph
::
configConstraint
(
const
Edges_t
&
edges
)
{
{
ConstraintSetPtr_t
constraint
;
ConstraintSetPtr_t
constraint
;
MapFromEdge
::
const_iterator
it
=
cfgConstraintSetMapFromEdge_
.
find
(
edges
);
MapFromEdge
::
const_iterator
it
=
cfgConstraintSetMapFromEdge_
.
find
(
edges
);
...
@@ -220,11 +227,17 @@ namespace hpp {
...
@@ -220,11 +227,17 @@ namespace hpp {
constraint
=
it
->
second
;
constraint
=
it
->
second
;
}
}
constraint
->
offsetFromConfig
(
config
);
return
constraint
;
return
constraint
;
}
}
ConstraintSetPtr_t
Graph
::
pathConstraint
(
const
Edges_t
&
edges
,
ConfigurationIn_t
config
)
ConstraintSetPtr_t
Graph
::
pathConstraint
(
const
Edges_t
&
edges
,
ConfigurationIn_t
config
)
{
ConstraintSetPtr_t
constraint
=
pathConstraint
(
edges
);
constraint
->
offsetFromConfig
(
config
);
return
constraint
;
}
ConstraintSetPtr_t
Graph
::
pathConstraint
(
const
Edges_t
&
edges
)
{
{
ConstraintSetPtr_t
constraint
;
ConstraintSetPtr_t
constraint
;
MapFromEdge
::
const_iterator
it
=
pathConstraintSetMapFromEdge_
.
find
(
edges
);
MapFromEdge
::
const_iterator
it
=
pathConstraintSetMapFromEdge_
.
find
(
edges
);
...
@@ -247,7 +260,6 @@ namespace hpp {
...
@@ -247,7 +260,6 @@ namespace hpp {
constraint
=
it
->
second
;
constraint
=
it
->
second
;
}
}
constraint
->
offsetFromConfig
(
config
);
return
constraint
;
return
constraint
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment