fcl_collision_object_wrapper.cpp
Go to the documentation of this file.
1 
28 
30 {
32 {
33  contact_distance_ = contact_distance;
34  updateAABB();
35 }
36 
38 
40 {
41  if (t.linear().isIdentity())
42  {
43  aabb = translate(cgeom->aabb_local, t.translation());
45  aabb.min_ -= delta;
46  aabb.max_ += delta;
47  }
48  else
49  {
50  fcl::Vector3<double> center = t * cgeom->aabb_center;
52  aabb.min_ = center - delta;
53  aabb.max_ = center + delta;
54  }
55 }
56 
58 
60 {
61  assert(shape_index_ >= 0);
62  return shape_index_;
63 }
64 
65 } // namespace tesseract_collision::tesseract_collision_fcl
tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::getShapeIndex
int getShapeIndex() const
Get the shape index. This is the geometries index in the urdf.
Definition: fcl_collision_object_wrapper.cpp:59
translate
AABB< S > translate(const AABB< S > &aabb, const Eigen::MatrixBase< Derived > &t)
tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::getContactDistanceThreshold
double getContactDistanceThreshold() const
Get the collision objects contact distance threshold.
Definition: fcl_collision_object_wrapper.cpp:37
fcl::CollisionObject< double >::t
Transform3< S > t
tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::updateAABB
void updateAABB()
Update the internal AABB. This must be called instead of the base class computeAABB().
Definition: fcl_collision_object_wrapper.cpp:39
fcl::Vector3
Eigen::Matrix< S, 3, 1 > Vector3
tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::shape_index_
int shape_index_
The shape index, which is the geometries index in the urdf.
Definition: fcl_collision_object_wrapper.h:83
fcl::AABB::max_
Vector3< S > max_
fcl::AABB::min_
Vector3< S > min_
fcl::CollisionObject< double >::aabb
AABB< S > aabb
tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::setShapeIndex
void setShapeIndex(int index)
Set the shape index. This is the geometries index in the urdf.
Definition: fcl_collision_object_wrapper.cpp:57
tesseract_collision::tesseract_collision_fcl
Definition: fcl_collision_geometry_cache.h:42
fcl_collision_object_wrapper.h
Collision Object Wrapper to modify AABB with contact distance threshold.
tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::setContactDistanceThreshold
void setContactDistanceThreshold(double contact_distance)
Set the collision objects contact distance threshold.
Definition: fcl_collision_object_wrapper.cpp:31
tesseract_collision::tesseract_collision_fcl::FCLCollisionObjectWrapper::contact_distance_
double contact_distance_
The contact distance threshold.
Definition: fcl_collision_object_wrapper.h:80
fcl::CollisionObject< double >::cgeom
std::shared_ptr< CollisionGeometry< S > > cgeom


tesseract_collision
Author(s): Levi Armstrong
autogenerated on Sun May 18 2025 03:01:52