Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::collision::bullet_internal::CollisionObjectWrapper Class Reference

This is a tesseract bullet collsion object. More...

#include <bullet_utils.h>

Inheritance diagram for tesseract::collision::bullet_internal::CollisionObjectWrapper:

Public Types

using Ptr = std::shared_ptr<CollisionObjectWrapper>
using ConstPtr = std::shared_ptr<const CollisionObjectWrapper>

Public Member Functions

 CollisionObjectWrapper (tesseract::common::LinkId id, const int &type_id, CollisionShapesConst shapes, tesseract::common::VectorIsometry3d shape_poses)
const tesseract::common::LinkId & getLinkId () const
 Get the collision object id.
const int & getTypeID () const
 Get a user defined type.
bool sameObject (const CollisionObjectWrapper &other) const
 Check if two CollisionObjectWrapper objects point to the same source object.
const CollisionShapesConst & getCollisionGeometries () const
const tesseract::common::VectorIsometry3d & getCollisionGeometriesTransforms () const
void getAABB (btVector3 &aabb_min, btVector3 &aabb_max) const
 Get the collision object's axis aligned bounding box This AABB is extended by half of the contact processing threshold, so the broadphase takes the full contact processing threshold into account when testing for the overlap of two AABBs.
std::shared_ptr< CollisionObjectWrapper > clone ()
 This clones the collision objects but not the collision shape wich is const.
void manage (const std::shared_ptr< BulletCollisionShape > &t)
void manageReserve (std::size_t s)

Public Attributes

short int m_collisionFilterGroup { btBroadphaseProxy::KinematicFilter }
short int m_collisionFilterMask { btBroadphaseProxy::StaticFilter | btBroadphaseProxy::KinematicFilter }
bool m_enabled { true }

Protected Attributes

tesseract::common::LinkId m_link_id
 The id of the collision object.
int m_type_id { -1 }
 A user defined type id.
CollisionShapesConst m_shapes
 The shapes poses information.
tesseract::common::VectorIsometry3d m_shape_poses
std::vector< std::shared_ptr< BulletCollisionShape > > m_data
 This manages the collision shape pointer so they get destroyed.

Detailed Description

This is a tesseract bullet collsion object.

It is a wrapper around bullet's collision object which contains specific information related to tesseract

Member Function Documentation

◆ getAABB()

void tesseract::collision::bullet_internal::CollisionObjectWrapper::getAABB ( btVector3 & aabb_min,
btVector3 & aabb_max ) const

Get the collision object's axis aligned bounding box This AABB is extended by half of the contact processing threshold, so the broadphase takes the full contact processing threshold into account when testing for the overlap of two AABBs.

Parameters
aabb_minThe minimum point
aabb_maxThe maximum point

◆ clone()

std::shared_ptr< CollisionObjectWrapper > tesseract::collision::bullet_internal::CollisionObjectWrapper::clone ( )

This clones the collision objects but not the collision shape wich is const.

Returns
Shared Pointer to the cloned collision object