Go to the documentation of this file.
42 #ifndef TESSERACT_COLLISION_FCL_DISCRETE_MANAGERS_H
43 #define TESSERACT_COLLISION_FCL_DISCRETE_MANAGERS_H
54 using Ptr = std::shared_ptr<FCLDiscreteBVHManager>;
55 using ConstPtr = std::shared_ptr<const FCLDiscreteBVHManager>;
56 using UPtr = std::unique_ptr<FCLDiscreteBVHManager>;
57 using ConstUPtr = std::unique_ptr<const FCLDiscreteBVHManager>;
66 std::string
getName() const override final;
74 bool enabled = true) override final;
115 const std::
string& name2,
116 double collision_margin) override final;
161 #endif // TESSERACT_COLLISION_FCL_DISCRETE_MANAGERS_H
AlignedVector< Eigen::Isometry3d > VectorIsometry3d
const tesseract_common::VectorIsometry3d & getCollisionObjectGeometriesTransforms(const std::string &name) const override final
Get a collision objects collision geometries transforms.
bool enableCollisionObject(const std::string &name) override final
Enable an object.
void setCollisionMarginPair(const std::string &name1, const std::string &name2, double collision_margin) override final
Set the margin for a given contact pair.
std::string getName() const override final
Get the name of the contact manager.
void incrementCollisionMargin(double increment) override final
Increment the collision margin data by some value.
void setCollisionMarginPairData(const CollisionMarginPairData &pair_margin_data, CollisionMarginPairOverrideType override_type=CollisionMarginPairOverrideType::REPLACE) override final
Set the contact distance thresholds for which collision should be considered on a per pair basis.
std::vector< std::string > collision_objects_
A list of the collision objects.
std::unique_ptr< fcl::BroadPhaseCollisionManagerd > dynamic_manager_
Broad-phase Collision Manager for active collision objects.
~FCLDiscreteBVHManager() override=default
void setCollisionObjectsTransform(const std::string &name, const Eigen::Isometry3d &pose) override final
Set a single collision object's transforms.
CollisionMarginData collision_margin_data_
The contact distance threshold.
AlignedMap< std::string, Eigen::Isometry3d > TransformMap
FCLDiscreteBVHManager & operator=(const FCLDiscreteBVHManager &)=delete
void contactTest(ContactResultMap &collisions, const ContactRequest &request) override final
Perform a contact test for all objects based.
std::size_t fcl_co_count_
The number fcl collision objects.
BroadPhaseCollisionManager< double > BroadPhaseCollisionManagerd
bool hasCollisionObject(const std::string &name) const override final
Find if a collision object already exists.
DiscreteContactManager::UPtr clone() const override final
Clone the manager.
void setDefaultCollisionMargin(double default_collision_margin) override final
Set the default collision margin.
void onCollisionMarginDataChanged()
This function will update internal data when margin data has changed.
bool removeCollisionObject(const std::string &name) override final
Remove an object from the checker.
CollisionMarginPairOverrideType
bool disableCollisionObject(const std::string &name) override final
Disable an object.
const CollisionMarginData & getCollisionMarginData() const override final
Get the contact distance threshold.
void setCollisionMarginData(CollisionMarginData collision_margin_data) override final
Set the contact distance threshold.
std::map< std::string, COW::Ptr > Link2COW
std::vector< CollisionObjectRawPtr > dynamic_update_
This is used to store dynamic collision objects to update.
std::vector< CollisionShapeConstPtr > CollisionShapesConst
std::unique_ptr< fcl::BroadPhaseCollisionManagerd > static_manager_
Broad-phase Collision Manager for active collision objects.
Tesseract ROS FCL Utility Functions.
const CollisionShapesConst & getCollisionObjectGeometries(const std::string &name) const override final
Get a collision objects collision geometries.
std::vector< std::string > active_
A list of the active collision objects.
This is a Tesseract link collision object wrapper which add items specific to tesseract....
bool addCollisionObject(const std::string &name, const int &mask_id, const CollisionShapesConst &shapes, const tesseract_common::VectorIsometry3d &shape_poses, bool enabled=true) override final
Add a object to the checker.
void setActiveCollisionObjects(const std::vector< std::string > &names) override final
Set which collision objects can move.
std::vector< CollisionObjectRawPtr > static_update_
This is used to store static collision objects to update.
const std::vector< std::string > & getActiveCollisionObjects() const override final
Get which collision objects can move.
Link2COW link2cow_
A map of all (static and active) collision objects being managed.
std::shared_ptr< const tesseract_common::ContactAllowedValidator > validator_
The is allowed collision function.
const std::vector< std::string > & getCollisionObjects() const override final
Get all collision objects.
FCLDiscreteBVHManager(std::string name="FCLDiscreteBVHManager")
std::shared_ptr< const tesseract_common::ContactAllowedValidator > getContactAllowedValidator() const override final
Get the active function for determining if two links are allowed to be in collision.
A FCL implementation of the discrete contact manager.
bool isCollisionObjectEnabled(const std::string &name) const override final
Check if collision object is enabled.
void setContactAllowedValidator(std::shared_ptr< const tesseract_common::ContactAllowedValidator > validator) override final
Set the active function for determining if two links are allowed to be in collision.