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
bbb4f107
Commit
bbb4f107
authored
1 year ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Remove call to deprecated methods.
Path::operator().
parent
b69dde3c
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
src/graph-path-validation.cc
+4
-4
4 additions, 4 deletions
src/graph-path-validation.cc
src/steering-method/end-effector-trajectory.cc
+1
-1
1 addition, 1 deletion
src/steering-method/end-effector-trajectory.cc
with
5 additions
and
5 deletions
src/graph-path-validation.cc
+
4
−
4
View file @
bbb4f107
...
...
@@ -133,11 +133,11 @@ bool GraphPathValidation::impl_validate(const PathPtr_t& path, bool reverse,
const
core
::
interval_t
&
newTR
=
newPath
.
timeRange
(),
oldTR
=
oldPath
.
timeRange
();
Configuration_t
q
(
newPath
.
outputSize
());
if
(
!
newPath
(
q
,
newTR
.
first
))
if
(
!
newPath
.
eval
(
q
,
newTR
.
first
))
throw
std
::
logic_error
(
"Initial configuration of the valid part cannot be projected."
);
const
graph
::
StatePtr_t
&
origState
=
constraintGraph_
->
getState
(
q
);
if
(
!
newPath
(
q
,
newTR
.
second
))
if
(
!
newPath
.
eval
(
q
,
newTR
.
second
))
throw
std
::
logic_error
(
"End configuration of the valid part cannot be projected."
);
// This may throw in the following case:
...
...
@@ -171,7 +171,7 @@ bool GraphPathValidation::impl_validate(const PathPtr_t& path, bool reverse,
validPart
=
path
->
extract
(
std
::
make_pair
(
oldTR
.
first
,
oldTR
.
first
));
return
false
;
}
if
(
!
oldPath
(
q
,
oldTR
.
first
))
{
if
(
!
oldPath
.
eval
(
q
,
oldTR
.
first
))
{
std
::
stringstream
oss
;
oss
<<
"Initial configuration of the path to be validated failed to"
" be projected. After maximal number of iterations, q="
...
...
@@ -182,7 +182,7 @@ bool GraphPathValidation::impl_validate(const PathPtr_t& path, bool reverse,
throw
std
::
logic_error
(
oss
.
str
().
c_str
());
}
const
graph
::
StatePtr_t
&
oldOstate
=
constraintGraph_
->
getState
(
q
);
if
(
!
oldPath
(
q
,
oldTR
.
second
))
{
if
(
!
oldPath
.
eval
(
q
,
oldTR
.
second
))
{
std
::
stringstream
oss
;
oss
<<
"End configuration of the path to be validated failed to"
" be projected. After maximal number of iterations, q="
...
...
This diff is collapsed.
Click to expand it.
src/steering-method/end-effector-trajectory.cc
+
1
−
1
View file @
bbb4f107
...
...
@@ -64,7 +64,7 @@ class FunctionFromPath : public constraints::DifferentiableFunction {
protected
:
void
impl_compute
(
core
::
LiegroupElementRef
result
,
vectorIn_t
arg
)
const
{
bool
success
=
(
*
path_
)
(
result
.
vector
(),
arg
[
0
]);
bool
success
=
path_
->
eval
(
result
.
vector
(),
arg
[
0
]);
if
(
!
success
)
{
hppDout
(
warning
,
"Failed to evaluate path at param "
<<
arg
[
0
]
<<
incindent
<<
iendl
<<
*
path_
...
...
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