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
Humanoid Path Planner
hpp-manipulation
Commits
ed7ff1c8
"git@gitlab.laas.fr:gepetto/quadruped-reactive-walking.git" did not exist on "b939677c2da7cf395b860099f8c679bbdae6061e"
Commit
ed7ff1c8
authored
9 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Inner optimizers in GraphOptimizer uses the GraphSteeringMethod
parent
8a0dda20
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/graph-optimizer.cc
+0
-13
0 additions, 13 deletions
src/graph-optimizer.cc
with
0 additions
and
13 deletions
src/graph-optimizer.cc
+
0
−
13
View file @
ed7ff1c8
...
@@ -16,22 +16,12 @@
...
@@ -16,22 +16,12 @@
#include
<hpp/manipulation/graph-optimizer.hh>
#include
<hpp/manipulation/graph-optimizer.hh>
#include
<hpp/core/steering-method-straight.hh>
#include
<hpp/manipulation/graph/edge.hh>
#include
<hpp/manipulation/graph/edge.hh>
namespace
hpp
{
namespace
hpp
{
namespace
manipulation
{
namespace
manipulation
{
PathVectorPtr_t
GraphOptimizer
::
optimize
(
const
PathVectorPtr_t
&
path
)
PathVectorPtr_t
GraphOptimizer
::
optimize
(
const
PathVectorPtr_t
&
path
)
{
{
core
::
Problem
&
p
=
const_cast
<
core
::
Problem
&>
(
this
->
problem
());
core
::
SteeringMethodPtr_t
sm
=
p
.
steeringMethod
();
core
::
ConstraintSetPtr_t
oldC
=
p
.
constraints
();
core
::
SteeringMethodStraightPtr_t
smS
=
core
::
SteeringMethodStraight
::
create
(
p
.
robot
());
p
.
steeringMethod
(
smS
);
PathVectorPtr_t
opted
=
PathVector
::
create
PathVectorPtr_t
opted
=
PathVector
::
create
(
path
->
outputSize
(),
path
->
outputDerivativeSize
()),
(
path
->
outputSize
(),
path
->
outputDerivativeSize
()),
expanded
=
PathVector
::
create
expanded
=
PathVector
::
create
...
@@ -46,7 +36,6 @@ namespace hpp {
...
@@ -46,7 +36,6 @@ namespace hpp {
toOpt
->
appendPath
(
current
);
toOpt
->
appendPath
(
current
);
graph
::
EdgePtr_t
edge
;
graph
::
EdgePtr_t
edge
;
c
=
HPP_DYNAMIC_PTR_CAST
(
ConstraintSet
,
current
->
constraints
());
c
=
HPP_DYNAMIC_PTR_CAST
(
ConstraintSet
,
current
->
constraints
());
p
.
constraints
(
c
);
if
(
c
)
edge
=
c
->
edge
();
if
(
c
)
edge
=
c
->
edge
();
std
::
size_t
i_e
=
i_s
+
1
;
std
::
size_t
i_e
=
i_s
+
1
;
for
(;
i_e
<
expanded
->
numberPaths
();
++
i_e
)
{
for
(;
i_e
<
expanded
->
numberPaths
();
++
i_e
)
{
...
@@ -61,8 +50,6 @@ namespace hpp {
...
@@ -61,8 +50,6 @@ namespace hpp {
i_s
=
i_e
;
i_s
=
i_e
;
opted
->
concatenate
(
*
toConcat
);
opted
->
concatenate
(
*
toConcat
);
}
}
p
.
steeringMethod
(
sm
);
p
.
constraints
(
oldC
);
pathOptimizer_
.
reset
();
pathOptimizer_
.
reset
();
return
opted
;
return
opted
;
}
}
...
...
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