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
3abea774
Commit
3abea774
authored
Apr 09, 2021
by
Florent Lamiraux
Browse files
[ConfigProjector] Add method isSatisfied with input error threshold.
parent
fc5036b1
Pipeline
#14000
failed with stage
in 81 minutes and 51 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
include/hpp/core/config-projector.hh
View file @
3abea774
...
@@ -261,8 +261,16 @@ namespace hpp {
...
@@ -261,8 +261,16 @@ namespace hpp {
/// @}
/// @}
/// Check whether a configuration statisfies the constraint.
/// Check whether a configuration statisfies the constraint.
/// \param config the configuration to test,
virtual
bool
isSatisfied
(
ConfigurationIn_t
config
);
virtual
bool
isSatisfied
(
ConfigurationIn_t
config
);
/// Check whether a configuration statisfies the constraint.
/// \param config the configuration to test,
/// \param errorThreshold the threshold the norm of each constraint should
/// stay below.
virtual
bool
isSatisfied
(
ConfigurationIn_t
config
,
value_type
errorThreshold
);
/// Check whether a configuration statisfies the constraint.
/// Check whether a configuration statisfies the constraint.
///
///
/// \param config the configuration to check
/// \param config the configuration to check
...
...
src/config-projector.cc
View file @
3abea774
...
@@ -276,6 +276,12 @@ namespace hpp {
...
@@ -276,6 +276,12 @@ namespace hpp {
return
solver_
->
isSatisfied
(
config
);
return
solver_
->
isSatisfied
(
config
);
}
}
bool
ConfigProjector
::
isSatisfied
(
ConfigurationIn_t
config
,
value_type
errorThreshold
)
{
return
solver_
->
isSatisfied
(
config
,
errorThreshold
);
}
bool
ConfigProjector
::
isSatisfied
(
ConfigurationIn_t
config
,
bool
ConfigProjector
::
isSatisfied
(
ConfigurationIn_t
config
,
vector_t
&
error
)
vector_t
&
error
)
{
{
...
...
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