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
2fe99cf9
Commit
2fe99cf9
authored
8 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Add a method that computes the error of a config wrt a leaf.
- Graph::getConfigErrorForEdgeLeaf.
parent
ff194ef2
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
+14
-0
14 additions, 0 deletions
include/hpp/manipulation/graph/graph.hh
src/graph/graph.cc
+10
-0
10 additions, 0 deletions
src/graph/graph.cc
with
24 additions
and
0 deletions
include/hpp/manipulation/graph/graph.hh
+
14
−
0
View file @
2fe99cf9
...
...
@@ -112,6 +112,20 @@ namespace hpp {
bool
getConfigErrorForEdge
(
ConfigurationIn_t
config
,
const
EdgePtr_t
&
edge
,
vector_t
&
error
);
/// Get error of a config with respect to an edge foliation leaf
///
/// \param leafConfig Configuration that determines the foliation leaf
/// \param config Configuration the error of which is computed
/// \retval error the error
/// \return whether config can be the end point of a path of the edge
/// starting at leafConfig
/// Call methods core::ConfigProjector::rightHandSideFromConfig with
/// leafConfig and then core::ConstraintSet::isSatisfied with config.
/// on the edge constraints.
bool
getConfigErrorForEdgeLeaf
(
ConfigurationIn_t
leafConfig
,
ConfigurationIn_t
config
,
const
EdgePtr_t
&
edge
,
vector_t
&
error
);
/// Constraint to project a path.
/// \param edge a list of edges defining the foliation.
/// \return The constraint.
...
...
This diff is collapsed.
Click to expand it.
src/graph/graph.cc
+
10
−
0
View file @
2fe99cf9
...
...
@@ -131,6 +131,16 @@ namespace hpp {
return
cs
->
isSatisfied
(
config
,
error
);
}
bool
Graph
::
getConfigErrorForEdgeLeaf
(
ConfigurationIn_t
leafConfig
,
ConfigurationIn_t
config
,
const
EdgePtr_t
&
edge
,
vector_t
&
error
)
{
ConstraintSetPtr_t
cs
(
pathConstraint
(
edge
));
ConfigProjectorPtr_t
cp
(
cs
->
configProjector
());
if
(
cp
)
cp
->
rightHandSideFromConfig
(
leafConfig
);
return
cs
->
isSatisfied
(
config
,
error
);
}
ConstraintSetPtr_t
Graph
::
configConstraint
(
const
EdgePtr_t
&
edge
)
{
return
edge
->
configConstraint
();
...
...
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