Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-core
Commits
60b66ea7
Commit
60b66ea7
authored
May 03, 2022
by
Le Quang Anh
Committed by
Florent Lamiraux
May 06, 2022
Browse files
Add some assertions on configuration normalization.
parent
637d4f3f
Pipeline
#18558
failed with stage
in 3 minutes and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/diffusing-planner.cc
View file @
60b66ea7
...
...
@@ -32,6 +32,7 @@
#include <tuple>
#include <iterator>
#include <pinocchio/math/quaternion.hpp>
#include <hpp/util/debug.hh>
#include <hpp/util/timer.hh>
#include <hpp/pinocchio/configuration.hh>
...
...
@@ -112,8 +113,11 @@ namespace hpp {
if
(
constraints
)
{
ConfigProjectorPtr_t
configProjector
(
constraints
->
configProjector
());
if
(
configProjector
)
{
assert
(
isNormalized
(
problem
()
->
robot
(),
target
,
PINOCCHIO_DEFAULT_QUATERNION_NORM_TOLERANCE_VALUE
));
assert
(
isNormalized
(
problem
()
->
robot
(),
*
(
near
->
configuration
()),
PINOCCHIO_DEFAULT_QUATERNION_NORM_TOLERANCE_VALUE
));
configProjector
->
projectOnKernel
(
*
(
near
->
configuration
()),
target
,
qProj_
);
assert
(
isNormalized
(
problem
()
->
robot
(),
qProj_
,
PINOCCHIO_DEFAULT_QUATERNION_NORM_TOLERANCE_VALUE
));
}
else
{
qProj_
=
target
;
}
...
...
src/straight-path.cc
View file @
60b66ea7
...
...
@@ -111,6 +111,8 @@ namespace hpp {
}
value_type
u
=
(
param
-
paramRange
().
first
)
/
L
;
if
(
L
==
0
)
u
=
0
;
assert
(
hpp
::
pinocchio
::
checkNormalized
(
hpp
::
pinocchio
::
LiegroupElement
(
initial_
,
space_
)));
assert
(
hpp
::
pinocchio
::
checkNormalized
(
hpp
::
pinocchio
::
LiegroupElement
(
end_
,
space_
)));
space_
->
interpolate
(
initial_
,
end_
,
u
,
result
);
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment