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
Humanoid Path Planner
hpp-manipulation
Commits
fd1da58e
Commit
fd1da58e
authored
10 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add a pointer to the robot in graph::Graph
parent
f32699dd
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hpp/manipulation/graph/graph.hh
+8
-3
8 additions, 3 deletions
include/hpp/manipulation/graph/graph.hh
with
8 additions
and
3 deletions
include/hpp/manipulation/graph/graph.hh
+
8
−
3
View file @
fd1da58e
...
...
@@ -17,6 +17,7 @@
#ifndef HPP_MANIPULATION_GRAPH_GRAPH_HH
# define HPP_MANIPULATION_GRAPH_GRAPH_HH
# include "hpp/manipulation/robot.hh"
# include "hpp/manipulation/graph/node-selector.hh"
# include "hpp/manipulation/fwd.hh"
...
...
@@ -39,11 +40,11 @@ namespace hpp {
{
public:
/// Create a new Graph.
static
GraphPtr_t
create
()
static
GraphPtr_t
create
(
RobotPtr_t
robot
)
{
Graph
*
ptr
=
new
Graph
;
GraphPtr_t
shPtr
(
ptr
);
ptr
->
init
(
shPtr
);
ptr
->
init
(
shPtr
,
robot
);
return
shPtr
;
}
...
...
@@ -63,8 +64,9 @@ namespace hpp {
protected
:
/// Initialization of the object.
void
init
(
const
GraphWkPtr_t
&
weak
)
void
init
(
const
GraphWkPtr_t
&
weak
,
RobotPtr_t
robot
)
{
robot_
=
robot
;
wkPtr_
=
weak
;
}
...
...
@@ -80,6 +82,9 @@ namespace hpp {
/// stability constraints.
ConstraintPtr_t
constraints_
;
/// Keep a pointer to the composite robot.
RobotPtr_t
robot_
;
/// Weak pointer to itself.
GraphWkPtr_t
wkPtr_
;
};
// Class 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