Tesseract 0.28.4
Loading...
Searching...
No Matches
tesseract::collision::ContactResult Struct Reference

Public Member Functions

void clear ()
 reset to default values
bool operator== (const ContactResult &rhs) const
bool operator!= (const ContactResult &rhs) const

Public Attributes

EIGEN_MAKE_ALIGNED_OPERATOR_NEW double distance { std::numeric_limits<double>::max() }
 The distance between two links.
std::array< int, 2 > type_id { 0, 0 }
 A user defined type id that is added to the contact shapes.
std::array< tesseract::common::LinkId, 2 > link_ids
 The two links that are in contact.
std::array< int, 2 > shape_id { -1, -1 }
 The two shapes that are in contact. Each link can be made up of multiple shapes.
std::array< int, 2 > subshape_id { -1, -1 }
 Some shapes like octomap and mesh have subshape (boxes and triangles).
std::array< Eigen::Vector3d, 2 > nearest_points { Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero() }
 The nearest point on both links in world coordinates.
std::array< Eigen::Vector3d, 2 > nearest_points_local { Eigen::Vector3d::Zero(), Eigen::Vector3d::Zero() }
 The nearest point on both links in local(link) coordinates.
std::array< Eigen::Isometry3d, 2 > transform { Eigen::Isometry3d::Identity(), Eigen::Isometry3d::Identity() }
 The transform of link in world coordinates.
Eigen::Vector3d normal { Eigen::Vector3d::Zero() }
 The normal vector to move the two objects out of contact in world coordinates.
std::array< double, 2 > cc_time { -1, -1 }
 This is between 0 and 1 indicating the point of contact.
std::array< ContinuousCollisionType, 2 > cc_type
 The type of continuous contact.
std::array< Eigen::Isometry3d, 2 > cc_transform { Eigen::Isometry3d::Identity(), Eigen::Isometry3d::Identity() }
 The transform of link in world coordinates at its desired final location. Note: This is not the location of the link at the point of contact but the final location the link when performing continuous collision checking. If you desire the location of contact use cc_time and interpolate between transform and cc_transform;.
bool single_contact_point { false }
 Some collision checkers only provide a single contact point for a given pair. This is used to indicate if only one contact point is provided which means nearest_points[0] must equal nearest_points[1].

Member Data Documentation

◆ normal

Eigen::Vector3d tesseract::collision::ContactResult::normal { Eigen::Vector3d::Zero() }

The normal vector to move the two objects out of contact in world coordinates.

Note
This points from link_name[0] to link_name[1], so it shows the direction to move link_name[1] to avoid or get out of collision with link_name[0].

◆ cc_type

std::array<ContinuousCollisionType, 2> tesseract::collision::ContactResult::cc_type
Initial value:
{ ContinuousCollisionType::CCType_None,
ContinuousCollisionType::CCType_None }

The type of continuous contact.