Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-fcl
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
Guilhem Saurel
hpp-fcl
Commits
0ccee846
Commit
0ccee846
authored
13 years ago
by
jpan
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
https://kforge.ros.org/fcl/fcl_ros@56
253336fb-580f-4252-a368-f3cef5a2a82b
parent
cd66479c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
trunk/fcl/include/fcl/collision_object.h
+0
-107
0 additions, 107 deletions
trunk/fcl/include/fcl/collision_object.h
with
0 additions
and
107 deletions
trunk/fcl/include/fcl/collision_object.h
+
0
−
107
View file @
0ccee846
...
...
@@ -217,113 +217,6 @@ protected:
void
*
user_data
;
};
/** \brief Base class for all objects participating in collision */
class
CollisionObject2
{
public:
virtual
~
CollisionObject2
()
{}
virtual
OBJECT_TYPE
getObjectType
()
const
{
return
OT_UNKNOWN
;
}
virtual
NODE_TYPE
getNodeType
()
const
{
return
BV_UNKNOWN
;
}
virtual
void
computeLocalAABB
()
=
0
;
inline
const
AABB
&
getAABB
()
const
{
return
aabb
;
}
inline
void
computeAABB
()
{
Vec3f
center
=
t
.
transform
(
aabb_center
);
Vec3f
delta
(
aabb_radius
,
aabb_radius
,
aabb_radius
);
aabb
.
min_
=
center
-
delta
;
aabb
.
max_
=
center
+
delta
;
}
void
*
getUserData
()
const
{
return
user_data
;
}
void
setUserData
(
void
*
data
)
{
user_data
=
data
;
}
inline
const
Vec3f
&
getTranslation
()
const
{
return
t
.
getTranslation
();
}
inline
const
Matrix3f
&
getRotation
()
const
{
return
t
.
getRotation
();
}
inline
const
SimpleQuaternion
&
getQuatRotation
()
const
{
return
t
.
getQuatRotation
();
}
void
setRotation
(
const
Matrix3f
&
R
)
{
t
.
setRotation
(
R
);
}
void
setTranslation
(
const
Vec3f
&
T
)
{
t
.
setTranslation
(
T
);
}
void
setQuatRotation
(
const
SimpleQuaternion
&
q
)
{
t
.
setQuatRotation
(
q
);
}
void
setTransform
(
const
Matrix3f
&
R
,
const
Vec3f
&
T
)
{
t
.
setTransform
(
R
,
T
);
}
void
setTransform
(
const
SimpleQuaternion
&
q
,
const
Vec3f
&
T
)
{
t
.
setTransform
(
q
,
T
);
}
bool
isIdentityTransform
()
const
{
return
t
.
isIdentity
();
}
void
setIdentityTransform
()
{
t
.
setIdentity
();
}
protected
:
/** AABB in global coordinate */
mutable
AABB
aabb
;
/** AABB center in local coordinate */
Vec3f
aabb_center
;
/** AABB radius */
BVH_REAL
aabb_radius
;
SimpleTransform
t
;
/** pointer to user defined data specific to this object */
void
*
user_data
;
};
}
#endif
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