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
8a0dda20
Commit
8a0dda20
authored
9 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add optimizer Graph-ConfigOptimization
parent
243036b9
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-optimizer.hh
+3
-3
3 additions, 3 deletions
include/hpp/manipulation/graph-optimizer.hh
src/problem-solver.cc
+14
-0
14 additions, 0 deletions
src/problem-solver.cc
with
17 additions
and
3 deletions
include/hpp/manipulation/graph-optimizer.hh
+
3
−
3
View file @
8a0dda20
...
@@ -49,7 +49,7 @@ namespace hpp {
...
@@ -49,7 +49,7 @@ namespace hpp {
public:
public:
typedef
core
::
ProblemSolver
::
PathOptimizerBuilder_t
PathOptimizerBuilder_t
;
typedef
core
::
ProblemSolver
::
PathOptimizerBuilder_t
PathOptimizerBuilder_t
;
template
<
typename
InnerPathOptimizer_t
>
template
<
typename
TraitsOrInnerType
>
static
GraphOptimizerPtr_t
create
(
const
core
::
Problem
&
problem
);
static
GraphOptimizerPtr_t
create
(
const
core
::
Problem
&
problem
);
virtual
PathVectorPtr_t
optimize
(
const
PathVectorPtr_t
&
path
);
virtual
PathVectorPtr_t
optimize
(
const
PathVectorPtr_t
&
path
);
...
@@ -80,12 +80,12 @@ namespace hpp {
...
@@ -80,12 +80,12 @@ namespace hpp {
/// \}
/// \}
/// Member function definition
/// Member function definition
template
<
typename
InnerPathOptimizer_t
>
template
<
typename
TraitsOrInnerType
>
GraphOptimizerPtr_t
GraphOptimizer
::
create
GraphOptimizerPtr_t
GraphOptimizer
::
create
(
const
core
::
Problem
&
problem
)
(
const
core
::
Problem
&
problem
)
{
{
return
GraphOptimizerPtr_t
(
return
GraphOptimizerPtr_t
(
new
GraphOptimizer
(
problem
,
InnerPathOptimizer_t
::
create
)
new
GraphOptimizer
(
problem
,
TraitsOrInnerType
::
create
)
);
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/problem-solver.cc
+
14
−
0
View file @
8a0dda20
...
@@ -45,6 +45,15 @@ namespace hpp {
...
@@ -45,6 +45,15 @@ namespace hpp {
core
::
pathOptimization
::
PartialShortcutTraits
{
core
::
pathOptimization
::
PartialShortcutTraits
{
static
bool
removeLockedJoints
()
{
return
false
;
}
static
bool
removeLockedJoints
()
{
return
false
;
}
};
};
template
<
typename
InnerConfigOptimizationTraits
>
struct
GraphConfigOptimizationTraits
{
static
core
::
PathOptimizerPtr_t
create
(
const
core
::
Problem
&
problem
)
{
return
core
::
pathOptimization
::
ConfigOptimization
::
createWithTraits
<
InnerConfigOptimizationTraits
>
(
problem
);
}
};
}
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Device
&
robot
)
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
Device
&
robot
)
...
@@ -67,6 +76,11 @@ namespace hpp {
...
@@ -67,6 +76,11 @@ namespace hpp {
addPathOptimizerType
(
"ConfigOptimization"
,
addPathOptimizerType
(
"ConfigOptimization"
,
core
::
pathOptimization
::
ConfigOptimization
::
createWithTraits
core
::
pathOptimization
::
ConfigOptimization
::
createWithTraits
<
pathOptimization
::
ConfigOptimizationTraits
>
);
<
pathOptimization
::
ConfigOptimizationTraits
>
);
addPathOptimizerType
(
"Graph-ConfigOptimization"
,
GraphOptimizer
::
create
<
GraphConfigOptimizationTraits
<
pathOptimization
::
ConfigOptimizationTraits
>
>
);
pathPlannerType
(
"M-RRT"
);
pathPlannerType
(
"M-RRT"
);
pathValidationType
(
"Graph-discretized"
,
0.05
);
pathValidationType
(
"Graph-discretized"
,
0.05
);
}
}
...
...
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