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

Contains parameters used to configure a contact manager before a series of contact checks. More...

#include <types.h>

Public Member Functions

 ContactManagerConfig (double default_margin)
void incrementMargins (double increment)
 Increment all margins by input amount. Useful for inflating or reducing margins.
void scaleMargins (double scale)
 Scale all margins by input value.
void validate () const
 Check for errors and throw exception if they exist.
bool operator== (const ContactManagerConfig &rhs) const
bool operator!= (const ContactManagerConfig &rhs) const

Public Attributes

std::optional< double > default_margin
 override the default contact margin
CollisionMarginPairOverrideType pair_margin_override_type { CollisionMarginPairOverrideType::NONE }
 Identify how the collision margin pair data should be applied to the contact manager.
CollisionMarginPairData pair_margin_data
 Stores collision margin pair data.
tesseract::common::AllowedCollisionMatrix acm
 Additional AllowedCollisionMatrix to consider for this collision check.
ACMOverrideType acm_override_type { ACMOverrideType::NONE }
 Specifies how to combine the ContactAllowedValidator from acm with the one preset in the contact manager.
std::unordered_map< tesseract::common::LinkId, bool > modify_object_enabled
 Each key is a link ID. Objects will be enabled/disabled based on the value. Objects that aren't in the map are unmodified from the defaults.

Detailed Description

Contains parameters used to configure a contact manager before a series of contact checks.

It should not contain information that is usually specific to a single contactTest such as CollisionObjectTransforms or specific to the way contactTests are carried out such as LVS parameters

Note
Active links were not added to this config since this config could be shared by multiple manipulators, and those are set based on which one is being checked

Member Function Documentation

◆ incrementMargins()

void tesseract::collision::ContactManagerConfig::incrementMargins ( double increment)

Increment all margins by input amount. Useful for inflating or reducing margins.

Parameters
incrementAmount to increment margins

◆ scaleMargins()

void tesseract::collision::ContactManagerConfig::scaleMargins ( double scale)

Scale all margins by input value.

Parameters
scaleValue by which all margins are multiplied

◆ validate()

void tesseract::collision::ContactManagerConfig::validate ( ) const

Check for errors and throw exception if they exist.

Exceptions
anexception if margin_data_override_type is set to NONE, but margin pair data exist; or if acm_override_type is set to NONE but allowed collision entries exist.