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
95a7f84c
Commit
95a7f84c
authored
8 years ago
by
hdallard
Browse files
Options
Downloads
Patches
Plain Diff
Add function to reset constraints
parent
1cdb0417
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/hpp/manipulation/graph/graph-component.hh
+6
-0
6 additions, 0 deletions
include/hpp/manipulation/graph/graph-component.hh
src/graph/graph-component.cc
+10
-0
10 additions, 0 deletions
src/graph/graph-component.cc
with
16 additions
and
0 deletions
include/hpp/manipulation/graph/graph-component.hh
+
6
−
0
View file @
95a7f84c
...
...
@@ -73,10 +73,16 @@ namespace hpp {
(
const
DifferentiableFunctionPtr_t
&
function
,
const
ComparisonTypePtr_t
&
ineq
)
HPP_MANIPULATION_DEPRECATED
;
/// Reset the numerical constraints stored in the component.
virtual
void
resetNumericalConstraints
();
/// Add core::LockedJoint constraint to the component.
virtual
void
addLockedJointConstraint
(
const
LockedJointPtr_t
&
constraint
);
/// Reset the locked joint in the component.
virtual
void
resetLockedJoints
();
/// Insert the numerical constraints in a ConfigProjector
/// \return true is at least one NumericalConstraintPtr_t was inserted.
bool
insertNumericalConstraints
(
ConfigProjectorPtr_t
&
proj
)
const
;
...
...
This diff is collapsed.
Click to expand it.
src/graph/graph-component.cc
+
10
−
0
View file @
95a7f84c
...
...
@@ -75,12 +75,22 @@ namespace hpp {
addNumericalConstraint
(
NumericalConstraint
::
create
(
function
,
ineq
));
}
void
GraphComponent
::
resetNumericalConstraints
()
{
numericalConstraints_
.
clear
();
}
void
GraphComponent
::
addLockedJointConstraint
(
const
LockedJointPtr_t
&
constraint
)
{
lockedJoints_
.
push_back
(
constraint
);
}
void
GraphComponent
::
resetLockedJoints
()
{
lockedJoints_
.
clear
();
}
bool
GraphComponent
::
insertNumericalConstraints
(
ConfigProjectorPtr_t
&
proj
)
const
{
IntervalsContainer_t
::
const_iterator
itpdof
=
passiveDofs_
.
begin
();
...
...
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