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
24dbd8f0
Commit
24dbd8f0
authored
10 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update class Problem to use GraphPathValidation
parent
9a939cbb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hpp/manipulation/problem.hh
+13
-1
13 additions, 1 deletion
include/hpp/manipulation/problem.hh
with
13 additions
and
1 deletion
include/hpp/manipulation/problem.hh
+
13
−
1
View file @
24dbd8f0
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#include
"hpp/manipulation/robot.hh"
#include
"hpp/manipulation/robot.hh"
#include
"hpp/manipulation/graph/graph.hh"
#include
"hpp/manipulation/graph/graph.hh"
#include
"hpp/manipulation/graph-path-validation.hh"
#include
"hpp/manipulation/fwd.hh"
#include
"hpp/manipulation/fwd.hh"
namespace
hpp
{
namespace
hpp
{
...
@@ -25,16 +26,22 @@ namespace hpp {
...
@@ -25,16 +26,22 @@ namespace hpp {
class
HPP_MANIPULATION_DLLAPI
Problem
:
public
core
::
Problem
class
HPP_MANIPULATION_DLLAPI
Problem
:
public
core
::
Problem
{
{
public:
public:
typedef
core
::
Problem
Parent
;
/// Constructor
/// Constructor
Problem
(
RobotPtr_t
robot
)
:
core
::
Problem
(
robot
),
Problem
(
RobotPtr_t
robot
)
:
core
::
Problem
(
robot
),
graph_
()
graph_
()
{
{
Parent
::
pathValidation
(
GraphPathValidation
::
create
(
Parent
::
pathValidation
(),
graph_
));
}
}
/// Set the graph of constraints
/// Set the graph of constraints
void
constraintGraph
(
const
graph
::
GraphPtr_t
&
graph
)
void
constraintGraph
(
const
graph
::
GraphPtr_t
&
graph
)
{
{
graph_
=
graph
;
graph_
=
graph
;
GraphPathValidationPtr_t
graphValidation
=
pathValidation
();
if
(
graphValidation
)
graphValidation
->
constraintGraph
(
graph
);
}
}
/// Get the graph of constraints
/// Get the graph of constraints
...
@@ -51,6 +58,11 @@ namespace hpp {
...
@@ -51,6 +58,11 @@ namespace hpp {
throw
std
::
runtime_error
(
"No graph in the problem."
);
throw
std
::
runtime_error
(
"No graph in the problem."
);
}
}
/// Get the path validation as a GraphPathValidation
GraphPathValidationPtr_t
pathValidation
()
{
return
HPP_DYNAMIC_PTR_CAST
(
GraphPathValidation
,
Parent
::
pathValidation
());
}
private
:
private
:
/// The graph of constraints
/// The graph of constraints
graph
::
GraphPtr_t
graph_
;
graph
::
GraphPtr_t
graph_
;
...
...
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