41#ifndef TESSERACT_COLLISION_BULLET_CAST_BVH_MANAGERS_H
42#define TESSERACT_COLLISION_BULLET_CAST_BVH_MANAGERS_H
54 using Ptr = std::shared_ptr<BulletCastBVHManager>;
55 using ConstPtr = std::shared_ptr<const BulletCastBVHManager>;
56 using UPtr = std::unique_ptr<BulletCastBVHManager>;
57 using ConstUPtr = std::unique_ptr<const BulletCastBVHManager>;
67 std::string
getName() const override final;
75 bool enabled = true) override final;
100 const Eigen::Isometry3d&
pose1,
101 const Eigen::Isometry3d&
pose2) override final;
123 const std::
string& name2,
124 double collision_margin) override final;
#define vector(a, b, c)
Definition: FloatMath.inl:3227
Tesseract ROS Bullet environment utility function.
A BVH implementation of a tesseract contact manager.
Definition: bullet_cast_bvh_manager.h:52
bool removeCollisionObject(const std::string &name) override final
Remove an object from the checker.
Definition: bullet_cast_bvh_manager.cpp:153
btDispatcherInfo dispatch_info_
The bullet collision dispatcher configuration information.
Definition: bullet_cast_bvh_manager.h:149
TesseractOverlapFilterCallback broadphase_overlap_cb_
Filter collision objects before broadphase check.
Definition: bullet_cast_bvh_manager.h:168
bool hasCollisionObject(const std::string &name) const override final
Find if a collision object already exists.
Definition: bullet_cast_bvh_manager.cpp:148
void setIsContactAllowedFn(IsContactAllowedFn fn) override final
Set the active function for determining if two links are allowed to be in collision.
Definition: bullet_cast_bvh_manager.cpp:454
void setCollisionObjectsTransform(const std::string &name, const Eigen::Isometry3d &pose) override final
Set a single static collision object's tansforms.
Definition: bullet_cast_bvh_manager.cpp:238
std::shared_ptr< const BulletCastBVHManager > ConstPtr
Definition: bullet_cast_bvh_manager.h:55
Link2Cow link2castcow_
A map of cast collision objects being managed.
Definition: bullet_cast_bvh_manager.h:159
bool disableCollisionObject(const std::string &name) override final
Disable an object.
Definition: bullet_cast_bvh_manager.cpp:201
std::unique_ptr< const BulletCastBVHManager > ConstUPtr
Definition: bullet_cast_bvh_manager.h:57
BulletCastBVHManager & operator=(BulletCastBVHManager &&)=delete
void contactTest(ContactResultMap &collisions, const ContactRequest &request) override final
Perform a contact test for all objects based.
Definition: bullet_cast_bvh_manager.cpp:456
std::unique_ptr< btCollisionDispatcher > dispatcher_
The bullet collision dispatcher used for getting object to object collison algorithm.
Definition: bullet_cast_bvh_manager.h:147
BulletCastBVHManager & operator=(const BulletCastBVHManager &)=delete
std::vector< std::string > active_
A list of the active collision objects.
Definition: bullet_cast_bvh_manager.h:143
const CollisionShapesConst & getCollisionObjectGeometries(const std::string &name) const override final
Get a collision objects collision geometries.
Definition: bullet_cast_bvh_manager.cpp:133
void setCollisionMarginData(CollisionMarginData collision_margin_data, CollisionMarginOverrideType override_type=CollisionMarginOverrideType::REPLACE) override final
Set the contact distance thresholds for which collision should be considered on a per pair basis.
Definition: bullet_cast_bvh_manager.cpp:429
const std::vector< std::string > & getActiveCollisionObjects() const override final
Get which collision objects can move.
Definition: bullet_cast_bvh_manager.cpp:427
std::shared_ptr< BulletCastBVHManager > Ptr
Definition: bullet_cast_bvh_manager.h:54
ContinuousContactManager::UPtr clone() const override final
Clone the manager.
Definition: bullet_cast_bvh_manager.cpp:86
std::string getName() const override final
Get the name of the contact manager.
Definition: bullet_cast_bvh_manager.cpp:84
const std::vector< std::string > & getCollisionObjects() const override final
Get all collision objects.
Definition: bullet_cast_bvh_manager.cpp:369
BulletCastBVHManager(BulletCastBVHManager &&)=delete
std::vector< std::string > collision_objects_
A list of the collision objects.
Definition: bullet_cast_bvh_manager.h:145
void setPairCollisionMarginData(const std::string &name1, const std::string &name2, double collision_margin) override final
Set the margin for a given contact pair.
Definition: bullet_cast_bvh_manager.cpp:442
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 collision object to the checker.
Definition: bullet_cast_bvh_manager.cpp:112
void setDefaultCollisionMarginData(double default_collision_margin) override final
Set the default collision margin.
Definition: bullet_cast_bvh_manager.cpp:436
BulletCastBVHManager(const BulletCastBVHManager &)=delete
const CollisionMarginData & getCollisionMarginData() const override final
Get the contact distance threshold.
Definition: bullet_cast_bvh_manager.cpp:450
const tesseract_common::VectorIsometry3d & getCollisionObjectGeometriesTransforms(const std::string &name) const override final
Get a collision objects collision geometries transforms.
Definition: bullet_cast_bvh_manager.cpp:141
TesseractCollisionConfiguration coll_config_
The bullet collision configuration.
Definition: bullet_cast_bvh_manager.h:153
void setActiveCollisionObjects(const std::vector< std::string > &names) override final
Set which collision objects can move.
Definition: bullet_cast_bvh_manager.cpp:371
IsContactAllowedFn getIsContactAllowedFn() const override final
Get the active function for determining if two links are allowed to be in collision.
Definition: bullet_cast_bvh_manager.cpp:455
std::unique_ptr< BulletCastBVHManager > UPtr
Definition: bullet_cast_bvh_manager.h:56
std::string name_
Definition: bullet_cast_bvh_manager.h:141
bool isCollisionObjectEnabled(const std::string &name) const override final
Check if collision object is enabled.
Definition: bullet_cast_bvh_manager.cpp:229
std::unique_ptr< btBroadphaseInterface > broadphase_
The bullet broadphase interface.
Definition: bullet_cast_bvh_manager.h:155
~BulletCastBVHManager() override
Definition: bullet_cast_bvh_manager.cpp:73
ContactTestData contact_test_data_
This is used when contactTest is called. It is also added as a user point to the collsion objects so ...
Definition: bullet_cast_bvh_manager.h:165
bool enableCollisionObject(const std::string &name) override final
Enable an object.
Definition: bullet_cast_bvh_manager.cpp:173
void onCollisionMarginDataChanged()
This function will update internal data when margin data has changed.
Definition: bullet_cast_bvh_manager.cpp:502
Link2Cow link2cow_
A map of collision objects being managed.
Definition: bullet_cast_bvh_manager.h:157
TesseractCollisionConfigurationInfo config_info_
The bullet collision configuration information.
Definition: bullet_cast_bvh_manager.h:151
This is a tesseract bullet collsion object.
Definition: bullet_utils.h:89
This is a modified configuration that included the modified Bullet algorithms.
Definition: tesseract_collision_configuration.h:82
This class is used to filter broadphase.
Definition: bullet_utils.h:349
Stores information about how the margins allowed between collision objects.
Definition: collision_margin_data.h:74
Definition: bullet_cast_bvh_manager.h:49
std::map< std::string, COW::Ptr > Link2Cow
Definition: bullet_utils.h:150
std::vector< tesseract_geometry::Geometry::ConstPtr > CollisionShapesConst
Definition: types.h:47
std::function< bool(const std::string &, const std::string &)> IsContactAllowedFn
Should return true if contact allowed, otherwise false.
Definition: types.h:59
Definition: allowed_collision_matrix.h:16
CollisionMarginOverrideType
Identifies how the provided contact margin data should be applied.
Definition: collision_margin_data.h:46
Definition: tesseract_collision_configuration.h:53
Modified bullet collision configuration.
auto pose2
Definition: tesseract_environment_collision.cpp:155
auto pose
Definition: tesseract_environment_collision.cpp:118
auto pose1
Definition: tesseract_environment_collision.cpp:153
m name
Definition: tesseract_scene_graph_link_unit.cpp:77