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
56456371
Commit
56456371
authored
10 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Change static to extern in insertListIn<T>, buildConfigProjector and
buildConstraintSet
parent
fa09012e
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/node.hh
+4
-23
4 additions, 23 deletions
include/hpp/manipulation/graph/node.hh
src/graph/node.cc
+23
-0
23 additions, 0 deletions
src/graph/node.cc
with
27 additions
and
23 deletions
include/hpp/manipulation/graph/node.hh
+
4
−
23
View file @
56456371
...
...
@@ -98,40 +98,21 @@ namespace hpp {
};
// class Node
template
<
typename
T
>
static
inline
void
insertListIn
(
const
T
&
l
,
ConstraintSetPtr_t
cs
)
extern
inline
void
insertListIn
(
const
T
&
l
,
ConstraintSetPtr_t
cs
)
{
typename
T
::
const_iterator
it
;
for
(
it
=
l
.
begin
();
it
!=
l
.
end
();
it
++
)
cs
->
addConstraint
(
HPP_DYNAMIC_PTR_CAST
(
Constraint
,
*
it
));
}
template
<
typename
T
>
static
inline
void
insertListIn
(
const
T
&
l
,
ConfigProjectorPtr_t
cs
)
extern
inline
void
insertListIn
(
const
T
&
l
,
ConfigProjectorPtr_t
cs
)
{
typename
T
::
const_iterator
it
;
for
(
it
=
l
.
begin
();
it
!=
l
.
end
();
it
++
)
cs
->
addConstraint
(
*
it
);
}
static
ConfigProjectorPtr_t
buildConfigProjector
(
GraphWkPtr_t
graph
,
const
std
::
string
&
name
)
{
GraphPtr_t
g
=
graph
.
lock
();
if
(
!
g
)
{
HPP_THROW_EXCEPTION
(
Bad_function_call
,
"Invalid weak_ptr to the Graph."
);
}
ConfigProjectorPtr_t
ret
=
ConfigProjector
::
create
(
g
->
robot
(),
name
,
g
->
errorThreshold
(),
g
->
maxIterations
());
return
ret
;
}
static
ConstraintSetPtr_t
buildConstraintSet
(
GraphWkPtr_t
graph
,
const
std
::
string
&
name
)
{
GraphPtr_t
g
=
graph
.
lock
();
if
(
!
g
)
{
HPP_THROW_EXCEPTION
(
Bad_function_call
,
"Invalid weak_ptr to the Graph."
);
}
ConstraintSetPtr_t
ret
=
ConstraintSet
::
create
(
g
->
robot
(),
name
);
return
ret
;
}
extern
ConfigProjectorPtr_t
buildConfigProjector
(
GraphWkPtr_t
graph
,
const
std
::
string
&
name
);
extern
ConstraintSetPtr_t
buildConstraintSet
(
GraphWkPtr_t
graph
,
const
std
::
string
&
name
);
}
// namespace graph
}
// namespace manipulation
}
// namespace hpp
...
...
This diff is collapsed.
Click to expand it.
src/graph/node.cc
+
23
−
0
View file @
56456371
...
...
@@ -19,6 +19,29 @@
namespace
hpp
{
namespace
manipulation
{
namespace
graph
{
ConfigProjectorPtr_t
buildConfigProjector
(
GraphWkPtr_t
graph
,
const
std
::
string
&
name
)
{
GraphPtr_t
g
=
graph
.
lock
();
if
(
!
g
)
{
HPP_THROW_EXCEPTION
(
Bad_function_call
,
"Invalid weak_ptr to the Graph."
);
}
ConfigProjectorPtr_t
ret
=
ConfigProjector
::
create
(
g
->
robot
(),
name
,
g
->
errorThreshold
(),
g
->
maxIterations
());
return
ret
;
}
ConstraintSetPtr_t
buildConstraintSet
(
GraphWkPtr_t
graph
,
const
std
::
string
&
name
)
{
GraphPtr_t
g
=
graph
.
lock
();
if
(
!
g
)
{
HPP_THROW_EXCEPTION
(
Bad_function_call
,
"Invalid weak_ptr to the Graph."
);
}
ConstraintSetPtr_t
ret
=
ConstraintSet
::
create
(
g
->
robot
(),
name
);
return
ret
;
}
NodePtr_t
Node
::
create
()
{
Node
*
node
=
new
Node
;
...
...
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