Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
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
Stack Of Tasks
pinocchio
Commits
0eef8bf1
Commit
0eef8bf1
authored
8 years ago
by
Nicolas Mansard
Committed by
Nicolas Mansard
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[C++] Geom: remove resetDistance and reset the distanceResult in computeDistance.
parent
d5050de8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/algorithm/geometry.hxx
+4
-3
4 additions, 3 deletions
src/algorithm/geometry.hxx
src/multibody/geometry.hpp
+0
-5
0 additions, 5 deletions
src/multibody/geometry.hpp
src/multibody/geometry.hxx
+0
-4
0 additions, 4 deletions
src/multibody/geometry.hxx
with
4 additions
and
12 deletions
src/algorithm/geometry.hxx
+
4
−
3
View file @
0eef8bf1
...
@@ -64,12 +64,12 @@ namespace se3
...
@@ -64,12 +64,12 @@ namespace se3
{
{
assert
(
pairId
<
geomModel
.
collisionPairs
.
size
()
);
assert
(
pairId
<
geomModel
.
collisionPairs
.
size
()
);
const
CollisionPair
&
pair
=
geomModel
.
collisionPairs
[
pairId
];
const
CollisionPair
&
pair
=
geomModel
.
collisionPairs
[
pairId
];
fcl
::
CollisionResult
&
collisionResult
=
geomData
.
collisionResults
[
pairId
];
assert
(
pairId
<
geomData
.
distance
Results
.
size
()
);
assert
(
pairId
<
geomData
.
collision
Results
.
size
()
);
assert
(
pair
.
first
<
geomData
.
collisionObjects
.
size
()
);
assert
(
pair
.
first
<
geomData
.
collisionObjects
.
size
()
);
assert
(
pair
.
second
<
geomData
.
collisionObjects
.
size
()
);
assert
(
pair
.
second
<
geomData
.
collisionObjects
.
size
()
);
fcl
::
CollisionResult
&
collisionResult
=
geomData
.
collisionResults
[
pairId
];
collisionResult
.
clear
();
collisionResult
.
clear
();
fcl
::
collide
(
&
geomData
.
collisionObjects
[
pair
.
first
],
fcl
::
collide
(
&
geomData
.
collisionObjects
[
pair
.
first
],
&
geomData
.
collisionObjects
[
pair
.
second
],
&
geomData
.
collisionObjects
[
pair
.
second
],
...
@@ -127,7 +127,8 @@ namespace se3
...
@@ -127,7 +127,8 @@ namespace se3
assert
(
pairId
<
geomData
.
distanceResults
.
size
()
);
assert
(
pairId
<
geomData
.
distanceResults
.
size
()
);
assert
(
pair
.
first
<
geomData
.
collisionObjects
.
size
()
);
assert
(
pair
.
first
<
geomData
.
collisionObjects
.
size
()
);
assert
(
pair
.
second
<
geomData
.
collisionObjects
.
size
()
);
assert
(
pair
.
second
<
geomData
.
collisionObjects
.
size
()
);
geomData
.
distanceResults
[
pairId
].
clear
();
fcl
::
distance
(
&
geomData
.
collisionObjects
[
pair
.
first
],
fcl
::
distance
(
&
geomData
.
collisionObjects
[
pair
.
first
],
&
geomData
.
collisionObjects
[
pair
.
second
],
&
geomData
.
collisionObjects
[
pair
.
second
],
geomData
.
distanceRequest
,
geomData
.
distanceRequest
,
...
...
This diff is collapsed.
Click to expand it.
src/multibody/geometry.hpp
+
0
−
5
View file @
0eef8bf1
...
@@ -258,11 +258,6 @@ namespace se3
...
@@ -258,11 +258,6 @@ namespace se3
/// \sa activateCollisionPair
/// \sa activateCollisionPair
void
deactivateCollisionPair
(
const
PairIndex
pairId
);
void
deactivateCollisionPair
(
const
PairIndex
pairId
);
/// Reset the vector distanceResults.
/// TODO: should this be called automatically before calling computeDistance?
/// TODO: should we implement the same for collisions?
void
resetDistances
();
#endif //WITH_HPP_FCL
#endif //WITH_HPP_FCL
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
GeometryData
&
geomData
);
friend
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
GeometryData
&
geomData
);
...
...
This diff is collapsed.
Click to expand it.
src/multibody/geometry.hxx
+
0
−
4
View file @
0eef8bf1
...
@@ -238,10 +238,6 @@ namespace se3
...
@@ -238,10 +238,6 @@ namespace se3
activeCollisionPairs
[
pairId
]
=
false
;
activeCollisionPairs
[
pairId
]
=
false
;
}
}
inline
void
GeometryData
::
resetDistances
()
{
std
::
fill
(
distanceResults
.
begin
(),
distanceResults
.
end
(),
fcl
::
DistanceResult
()
);
}
#endif //WITH_HPP_FCL
#endif //WITH_HPP_FCL
}
// namespace se3
}
// namespace se3
...
...
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