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
62990025
Commit
62990025
authored
8 years ago
by
Joseph Mirabel
Committed by
Joseph Mirabel
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[C++] Remove GeometryData::isColliding(Index&)
parent
c31f4728
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
src/multibody/geometry.hpp
+10
-5
10 additions, 5 deletions
src/multibody/geometry.hpp
src/multibody/geometry.hxx
+2
-7
2 additions, 7 deletions
src/multibody/geometry.hxx
with
12 additions
and
12 deletions
src/multibody/geometry.hpp
+
10
−
5
View file @
62990025
...
...
@@ -241,6 +241,15 @@ namespace se3
/// attached to the body from the joint center.
///
std
::
vector
<
double
>
radius
;
///
/// \brief index of the collision pair
///
/// It is used by some method to return additional information. For instance,
/// isColliding() sets it to the first colliding pair.
///
Index
collisionPairIndex
;
GeometryData
(
const
GeometryModel
&
modelGeom
)
:
model_geom
(
modelGeom
)
,
oMg
(
model_geom
.
ngeoms
)
...
...
@@ -289,12 +298,8 @@ namespace se3
/// \brief Check if at least one of the collision pairs has its two collision objects in collision.
/// The results are stored in the vector GeometryData::collision_results.
///
///
\param[out]
the index of the colliding pair i
f the function returns true
.
///
Set collisionPairIndex to
the index of the
first
colliding pair i
n collision
.
///
bool
isColliding
(
Index
&
collidingPair
);
/// \brief See bool isColliding(Index&)
/// As isColliding(Index&) without argument
bool
isColliding
();
///
...
...
This diff is collapsed.
Click to expand it.
src/multibody/geometry.hxx
+
2
−
7
View file @
62990025
...
...
@@ -232,8 +232,9 @@ namespace se3
}
}
inline
bool
GeometryData
::
isColliding
(
Index
&
i
)
inline
bool
GeometryData
::
isColliding
()
{
Index
&
i
=
collisionPairIndex
;
for
(
i
=
0
;
i
<
model_geom
.
collisionPairs
.
size
();
++
i
)
{
if
(
activeCollisionPairs
[
i
]
&&
computeCollision
(
i
))
...
...
@@ -242,12 +243,6 @@ namespace se3
return
false
;
}
inline
bool
GeometryData
::
isColliding
()
{
Index
pair
;
return
isColliding
(
pair
);
}
inline
DistanceResult
GeometryData
::
computeDistance
(
const
CollisionPair
&
pair
)
const
{
const
Index
&
co1
=
pair
.
first
;
assert
(
co1
<
collisionObjects
.
size
());
...
...
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