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
test-hpp
Commits
889db853
Commit
889db853
authored
Apr 25, 2015
by
Florent Lamiraux
Browse files
Add method isSatisfied as required by commit a23e5a9 in hpp-core.
parent
147d7aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/projection.cc
View file @
889db853
...
...
@@ -271,11 +271,16 @@ namespace svd {
public:
vector_t
offsetFromConfig
(
ConfigurationIn_t
/* config */
)
{
return
vector_t
();}
bool
isSatisfied
(
ConfigurationIn_t
config
)
{
bool
isSatisfied
(
ConfigurationIn_t
config
)
{
computeValueAndJacobian
(
config
);
return
value_
.
squaredNorm
()
<
squareErrorThreshold_
;
}
bool
isSatisfied
(
ConfigurationIn_t
config
,
vector_t
&
error
)
{
computeValueAndJacobian
(
config
);
return
value_
.
squaredNorm
()
-
squareErrorThreshold_
;
}
void
addConstraint
(
const
DifferentiableFunctionPtr_t
&
constraint
)
{
size_
+=
constraint
->
outputSize
();
...
...
@@ -452,7 +457,7 @@ namespace svd {
mutable
matrix_t
reducedJacobian_
;
mutable
vector_t
dqSmall_
;
};
// class SVDTest
};
// class SVDTest
struct
Result
{
Configuration_t
before
,
after
;
...
...
Write
Preview
Supports
Markdown
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