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
c50004e8
Commit
c50004e8
authored
10 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Update to commit 07c3141 in hpp-core
Add validation report classes for config and path validations.
parent
aa84aeaf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/hpp/manipulation/fwd.hh
+1
-0
1 addition, 0 deletions
include/hpp/manipulation/fwd.hh
include/hpp/manipulation/graph-path-validation.hh
+13
-0
13 additions, 0 deletions
include/hpp/manipulation/graph-path-validation.hh
src/graph-path-validation.cc
+8
-0
8 additions, 0 deletions
src/graph-path-validation.cc
with
22 additions
and
0 deletions
include/hpp/manipulation/fwd.hh
+
1
−
0
View file @
c50004e8
...
@@ -96,6 +96,7 @@ namespace hpp {
...
@@ -96,6 +96,7 @@ namespace hpp {
typedef
core
::
DifferentiableFunctionPtr_t
DifferentiableFunctionPtr_t
;
typedef
core
::
DifferentiableFunctionPtr_t
DifferentiableFunctionPtr_t
;
typedef
core
::
ConfigurationShooter
ConfigurationShooter
;
typedef
core
::
ConfigurationShooter
ConfigurationShooter
;
typedef
core
::
ConfigurationShooterPtr_t
ConfigurationShooterPtr_t
;
typedef
core
::
ConfigurationShooterPtr_t
ConfigurationShooterPtr_t
;
typedef
core
::
ValidationReport
ValidationReport
;
typedef
std
::
pair
<
GripperPtr_t
,
HandlePtr_t
>
Grasp_t
;
typedef
std
::
pair
<
GripperPtr_t
,
HandlePtr_t
>
Grasp_t
;
typedef
boost
::
shared_ptr
<
Grasp_t
>
GraspPtr_t
;
typedef
boost
::
shared_ptr
<
Grasp_t
>
GraspPtr_t
;
...
...
This diff is collapsed.
Click to expand it.
include/hpp/manipulation/graph-path-validation.hh
+
13
−
0
View file @
c50004e8
...
@@ -49,6 +49,19 @@ namespace hpp {
...
@@ -49,6 +49,19 @@ namespace hpp {
/// the encapsulated PathValidation::validate.
/// the encapsulated PathValidation::validate.
bool
validate
(
const
PathPtr_t
&
path
,
bool
reverse
,
PathPtr_t
&
validPart
);
bool
validate
(
const
PathPtr_t
&
path
,
bool
reverse
,
PathPtr_t
&
validPart
);
/// Call the GraphPathValidation::validate without validation report.
///
/// \param path the path to check for validity,
/// \param reverse if true check from the end,
/// \retval the extracted valid part of the path, pointer to path if
/// path is valid,
/// \retval report information about the validation process. unused in
/// this case,
/// \return whether the whole path is valid.
virtual
bool
validate
(
const
PathPtr_t
&
path
,
bool
reverse
,
PathPtr_t
&
validPart
,
ValidationReport
&
report
);
/// Set the encapsulated path validator.
/// Set the encapsulated path validator.
void
innerValidation
(
const
PathValidationPtr_t
&
pathValidation
)
void
innerValidation
(
const
PathValidationPtr_t
&
pathValidation
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/graph-path-validation.cc
+
8
−
0
View file @
c50004e8
...
@@ -39,6 +39,14 @@ namespace hpp {
...
@@ -39,6 +39,14 @@ namespace hpp {
return
success
;
return
success
;
}
}
bool
GraphPathValidation
::
validate
(
const
PathPtr_t
&
path
,
bool
reverse
,
PathPtr_t
&
validPart
,
ValidationReport
&
)
{
assert
(
path
);
return
impl_validate
(
path
,
reverse
,
validPart
);
}
bool
GraphPathValidation
::
impl_validate
(
bool
GraphPathValidation
::
impl_validate
(
const
PathVectorPtr_t
&
path
,
bool
reverse
,
PathPtr_t
&
validPart
)
const
PathVectorPtr_t
&
path
,
bool
reverse
,
PathPtr_t
&
validPart
)
{
{
...
...
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