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
d9f1cd51
Commit
d9f1cd51
authored
10 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add numericalConstraints and lockedDofConstraints to GraphComponent
parent
0f856361
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/hpp/manipulation/graph/graph.hh
+36
-0
36 additions, 0 deletions
include/hpp/manipulation/graph/graph.hh
with
36 additions
and
0 deletions
include/hpp/manipulation/graph/graph.hh
+
36
−
0
View file @
d9f1cd51
...
...
@@ -74,6 +74,35 @@ namespace hpp {
return
os
;
}
/// Add core::DifferentiableFunction to the component.
virtual
void
addNumericalConstraint
(
const
DifferentiableFunctionPtr_t
&
function
)
{
numericalConstraints_
.
push_back
(
function
);
}
/// Add core::LockedDof constraint to the component.
virtual
void
addLockedDofConstraint
(
const
LockedDofPtr_t
&
constraint
)
{
lockedDofConstraints_
.
push_back
(
constraint
);
}
/// Get a reference to the DifferentiableFunctions_t
const
DifferentiableFunctions_t
&
numericalConstraints
()
const
{
return
numericalConstraints_
;
}
/// Get a reference to the LockedDofs_t
const
LockedDofs_t
&
lockedDofConstraints
()
const
{
return
lockedDofConstraints_
;
}
/// Set the parent graph.
void
parentGraph
(
const
GraphWkPtr_t
&
parent
)
{
graph_
=
parent
;
}
protected
:
/// Initialize the component
...
...
@@ -87,6 +116,13 @@ namespace hpp {
GraphComponent
()
:
id_
(
-
1
)
{}
/// Stores the numerical constraints.
DifferentiableFunctions_t
numericalConstraints_
;
/// List of LockedDof constraints
LockedDofs_t
lockedDofConstraints_
;
/// A weak pointer to the parent graph.
GraphWkPtr_t
graph_
;
private
:
/// Keep track of the created components in order to retrieve them
/// easily.
...
...
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