Allowable collision matrix for robowflex::darts::Structure.  
 More...
#include <acm.h>
Allowable collision matrix for robowflex::darts::Structure. 
Definition at line 33 of file acm.h.
 
◆ ACM()
Constructor. 
- Parameters
 - 
  
    | [in] | structure | The structure the ACM is for. | 
  
   
ACM 
Definition at line 10 of file acm.cpp.
   11   : 
structure_(structure), 
filter_(std::make_shared<dart::collision::BodyNodeCollisionFilter>())
 
std::shared_ptr< dart::collision::BodyNodeCollisionFilter > filter_
Collision filter.
 
const Structure * structure_
Structure this ACM is for.
 
 
 
 
◆ disableCollision()
Disable collisions between body frames a and b. 
- Parameters
 - 
  
    | [in] | a | Body frame A.  | 
    | [in] | b | Body frame B.  | 
  
   
Definition at line 15 of file acm.cpp.
dart::dynamics::BodyNode * getBodyNode(const std::string &key)
Get the body node in the structure corresponding to the body frame name.
 
std::pair< std::string, std::string > makeKey(const std::string &a, const std::string &b) const
Create a unique key for two frame names.
 
std::set< std::pair< std::string, std::string > > acm_
Disabled collision pairs.
 
 
 
 
◆ enableCollision()
Enable collisions between body frames a and b. 
- Parameters
 - 
  
    | [in] | a | Body frame A.  | 
    | [in] | b | Body frame B.  | 
  
   
Definition at line 25 of file acm.cpp.
 
 
◆ getBodyNode()
  
  
      
        
          | dart::dynamics::BodyNode * ACM::getBodyNode  | 
          ( | 
          const std::string &  | 
          key | ) | 
           | 
         
       
   | 
  
private   | 
  
 
Get the body node in the structure corresponding to the body frame name. 
- Parameters
 - 
  
    | [in] | key | Name of body frame.  | 
  
   
- Returns
 - Body frame in structure. 
 
Definition at line 69 of file acm.cpp.
const dart::dynamics::SkeletonPtr & getSkeletonConst() const
Get the underlying skeleton for the structure.
 
 
 
 
◆ getDisabledPairs()
Get the pairs of frames that have collision disabled. 
- Returns
 - The set of pairs with collision disabled. 
 
Definition at line 51 of file acm.cpp.
 
 
◆ getDisabledPairsConst()
Get the pairs of frames that have collision disabled. 
- Returns
 - The set of pairs with collision disabled. 
 
Definition at line 56 of file acm.cpp.
 
 
◆ getFilter()
      
        
          | std::shared_ptr< dart::collision::BodyNodeCollisionFilter > ACM::getFilter  | 
          ( | 
           | ) | 
           | 
        
      
 
Get the Dart collision filter corresponding to this ACM. 
- Returns
 - The collision filter. 
 
Definition at line 36 of file acm.cpp.
 
 
◆ getFilterConst()
      
        
          | const std::shared_ptr< dart::collision::BodyNodeCollisionFilter > & ACM::getFilterConst  | 
          ( | 
           | ) | 
           const | 
        
      
 
Get the Dart collision filter corresponding to this ACM. 
- Returns
 - The collision filter. 
 
Definition at line 41 of file acm.cpp.
 
 
◆ getStructure()
      
        
          | const Structure * ACM::getStructure  | 
          ( | 
           | ) | 
           const | 
        
      
 
Get the structure this ACM is for. 
- Returns
 - The structure for the ACM. 
 
Definition at line 46 of file acm.cpp.
 
 
◆ makeKey()
Create a unique key for two frame names. 
- Parameters
 - 
  
    | [in] | a | Body frame A.  | 
    | [in] | b | Body frame B.  | 
  
   
- Returns
 - Key for disabled collision in ACM. 
 
Definition at line 61 of file acm.cpp.
 
 
◆ acm_
Disabled collision pairs. 
Definition at line 103 of file acm.h.
 
 
◆ filter_
  
  
      
        
          | std::shared_ptr<dart::collision::BodyNodeCollisionFilter> robowflex::darts::ACM::filter_ | 
         
       
   | 
  
private   | 
  
 
Collision filter. 
Definition at line 104 of file acm.h.
 
 
◆ structure_
  
  
      
        
          | const Structure* robowflex::darts::ACM::structure_ | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: