Go to the documentation of this file.
42 for (
const std::pair<const std::string, CollisionObjectWrapperPtr>& cow :
link2cow_)
44 CollisionObjectWrapperPtr new_cow = cow.second->clone();
46 assert(new_cow->getCollisionShape());
47 assert(new_cow->getCollisionShape()->getShapeType() != CUSTOM_CONVEX_SHAPE_TYPE);
49 new_cow->setWorldTransform(cow.second->getWorldTransform());
51 manager->addCollisionObject(new_cow);
54 manager->setActiveCollisionObjects(
active_);
67 btOverlappingPairCache* pair_cache =
broadphase_->getOverlappingPairCache();
70 "Num overlapping candidates " << pair_cache->getNumOverlappingPairs());
74 pair_cache->processAllOverlappingPairs(&collision_callback,
dispatcher_.get());
BulletDiscreteBVHManagerPtr clone() const
Clone the manager.
std::unique_ptr< btCollisionDispatcher > dispatcher_
The bullet collision dispatcher used for getting object to object collison algorithm.
std::unique_ptr< btBroadphaseInterface > broadphase_
The bullet broadphase interface.
#define ROS_DEBUG_STREAM_NAMED(name, args)
void contactTest(collision_detection::CollisionResult &collisions, const collision_detection::CollisionRequest &req, const collision_detection::AllowedCollisionMatrix *acm, bool self) override
Perform a contact test for all objects in the manager.
std::vector< std::string > active_
A list of the active collision links.
void addCollisionObjectToBroadphase(const CollisionObjectWrapperPtr &cow, const std::unique_ptr< btBroadphaseInterface > &broadphase, const std::unique_ptr< btCollisionDispatcher > &dispatcher)
Add the collision object to broadphase.
Representation of a collision checking request.
A callback function that is called as part of the broadphase collision checking.
Definition of a structure for the allowed collision matrix.
Representation of a collision checking result.
std::map< std::string, CollisionObjectWrapperPtr > link2cow_
A map of collision objects being managed.
void addCollisionObject(const CollisionObjectWrapperPtr &cow) override
Add a bullet collision object to the manager.
btDispatcherInfo dispatch_info_
The bullet collision dispatcher configuration information.
bool collision
True if collision was found, false otherwise.
double contact_distance_
The contact distance threshold.
std::size_t contact_count
Number of contacts returned.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW BulletDiscreteBVHManager()=default
Constructor.
moveit_core
Author(s): Ioan Sucan
, Sachin Chitta , Acorn Pooley
autogenerated on Sun Nov 3 2024 03:26:14