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
1a536f43
Commit
1a536f43
authored
6 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update to changes into hpp::core::pathOptimization::SplineGradientBased
parent
6ded2e47
No related branches found
Branches containing commit
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/path-optimization/spline-gradient-based.hh
+6
-6
6 additions, 6 deletions
...p/manipulation/path-optimization/spline-gradient-based.hh
src/path-optimization/spline-gradient-based.cc
+5
-5
5 additions, 5 deletions
src/path-optimization/spline-gradient-based.cc
with
11 additions
and
11 deletions
include/hpp/manipulation/path-optimization/spline-gradient-based.hh
+
6
−
6
View file @
1a536f43
...
...
@@ -40,9 +40,9 @@ namespace hpp {
Parent_t
;
typedef
boost
::
shared_ptr
<
SplineGradientBased
>
Ptr_t
;
typedef
typename
Parent_t
::
Spline
Spline
;
typedef
typename
Parent_t
::
SplinePtr_t
SplinePtr_t
;
typedef
typename
Parent_t
::
Splines_t
Splines_t
;
using
typename
Parent_t
::
Spline
;
using
typename
Parent_t
::
SplinePtr_t
;
using
typename
Parent_t
::
Splines_t
;
/// Return shared pointer to new object.
static
Ptr_t
create
(
const
Problem
&
problem
);
...
...
@@ -54,15 +54,15 @@ namespace hpp {
static
Ptr_t
createFromCore
(
const
core
::
Problem
&
problem
);
protected
:
typedef
typename
Parent_t
::
LinearConstraint
LinearConstraint
;
typedef
typename
Parent_t
::
S
olvers_t
Solver
s_t
;
typedef
typename
hpp
::
core
::
pathOptimization
::
LinearConstraint
LinearConstraint
;
using
typename
Parent_t
::
S
plineOptimizationData
s_t
;
SplineGradientBased
(
const
Problem
&
problem
);
virtual
void
initializePathValidation
(
const
Splines_t
&
splines
);
virtual
void
addProblemConstraints
(
const
core
::
PathVectorPtr_t
&
init
,
const
Splines_t
&
splines
,
LinearConstraint
&
lc
,
S
olver
s_t
&
e
ss
)
const
;
const
Splines_t
&
splines
,
LinearConstraint
&
lc
,
S
plineOptimizationData
s_t
&
s
od
s
)
const
;
virtual
void
constrainEndIntoState
(
const
core
::
PathPtr_t
&
path
,
const
size_type
&
idxSpline
,
const
SplinePtr_t
&
spline
,
...
...
This diff is collapsed.
Click to expand it.
src/path-optimization/spline-gradient-based.cc
+
5
−
5
View file @
1a536f43
...
...
@@ -16,7 +16,7 @@
#include
<hpp/manipulation/path-optimization/spline-gradient-based.hh>
#include
<hpp/core/path-optimization/
spline-gradient-based/
linear-constraint.hh>
#include
<hpp/core/path-optimization/linear-constraint.hh>
#include
<hpp/manipulation/constraint-set.hh>
#include
<hpp/manipulation/graph/state.hh>
...
...
@@ -70,9 +70,9 @@ namespace hpp {
template
<
int
_PB
,
int
_SO
>
void
SplineGradientBased
<
_PB
,
_SO
>::
addProblemConstraints
(
const
core
::
PathVectorPtr_t
&
init
,
const
Splines_t
&
splines
,
LinearConstraint
&
lc
,
S
olver
s_t
&
ss
)
const
(
const
core
::
PathVectorPtr_t
&
init
,
const
Splines_t
&
splines
,
LinearConstraint
&
lc
,
S
plineOptimizationData
s_t
&
s
od
s
)
const
{
assert
(
init
->
numberPaths
()
==
splines
.
size
()
&&
ss
.
size
()
==
splines
.
size
());
assert
(
init
->
numberPaths
()
==
splines
.
size
()
&&
s
od
s
.
size
()
==
splines
.
size
());
bool
zeroDerivative
=
this
->
problem
().
getParameter
(
"SplineGradientBased/zeroDerivativesAtStateIntersection"
,
false
);
...
...
@@ -86,7 +86,7 @@ namespace hpp {
"generated with a graph."
);
graph
::
EdgePtr_t
transition
=
set
->
edge
();
this
->
addProblemConstraintOnPath
(
path
,
i
,
splines
[
i
],
lc
,
ss
[
i
]);
this
->
addProblemConstraintOnPath
(
path
,
i
,
splines
[
i
],
lc
,
s
od
s
[
i
]);
// The path should always go through the start and end states of the
// transition.
...
...
@@ -164,7 +164,7 @@ namespace hpp {
}
}
}
this
->
addProblemConstraintOnPath
(
init
->
pathAtRank
(
last
),
last
,
splines
[
last
],
lc
,
ss
[
last
]);
this
->
addProblemConstraintOnPath
(
init
->
pathAtRank
(
last
),
last
,
splines
[
last
],
lc
,
s
od
s
[
last
]);
}
template
<
int
_PB
,
int
_SO
>
...
...
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