Public Member Functions | Private Attributes | List of all members
exotica::AllowedCollisionMatrix Class Reference

The AllowedCollisionMatrix is a data structure containing links for which a detected collision does not result in a state to be considered invalid/in-collision. This can exclude links that are in collision by default, neighbouring links, or links that could never be possibly in collision (e.g. if out of reach). More...

#include <collision_scene.h>

Public Member Functions

 AllowedCollisionMatrix ()
 
 AllowedCollisionMatrix (const AllowedCollisionMatrix &acm)
 
void clear ()
 
void getAllEntryNames (std::vector< std::string > &names) const
 
bool getAllowedCollision (const std::string &name1, const std::string &name2) const
 
size_t getNumberOfEntries () const
 
bool hasEntry (const std::string &name) const
 
AllowedCollisionMatrixoperator= (const AllowedCollisionMatrix &other)
 
void setEntry (const std::string &name1, const std::string &name2)
 
 ~AllowedCollisionMatrix ()
 

Private Attributes

std::unordered_map< std::string, std::unordered_set< std::string > > entries_
 

Detailed Description

The AllowedCollisionMatrix is a data structure containing links for which a detected collision does not result in a state to be considered invalid/in-collision. This can exclude links that are in collision by default, neighbouring links, or links that could never be possibly in collision (e.g. if out of reach).

Definition at line 54 of file collision_scene.h.

Constructor & Destructor Documentation

◆ AllowedCollisionMatrix() [1/2]

exotica::AllowedCollisionMatrix::AllowedCollisionMatrix ( )
inline

Definition at line 57 of file collision_scene.h.

◆ ~AllowedCollisionMatrix()

exotica::AllowedCollisionMatrix::~AllowedCollisionMatrix ( )
inline

Definition at line 58 of file collision_scene.h.

◆ AllowedCollisionMatrix() [2/2]

exotica::AllowedCollisionMatrix::AllowedCollisionMatrix ( const AllowedCollisionMatrix acm)
inline

Definition at line 59 of file collision_scene.h.

Member Function Documentation

◆ clear()

void exotica::AllowedCollisionMatrix::clear ( )
inline

Definition at line 68 of file collision_scene.h.

◆ getAllEntryNames()

void exotica::AllowedCollisionMatrix::getAllEntryNames ( std::vector< std::string > &  names) const
inline

Definition at line 71 of file collision_scene.h.

◆ getAllowedCollision()

bool exotica::AllowedCollisionMatrix::getAllowedCollision ( const std::string &  name1,
const std::string &  name2 
) const
inline

Definition at line 80 of file collision_scene.h.

◆ getNumberOfEntries()

size_t exotica::AllowedCollisionMatrix::getNumberOfEntries ( ) const
inline

Definition at line 79 of file collision_scene.h.

◆ hasEntry()

bool exotica::AllowedCollisionMatrix::hasEntry ( const std::string &  name) const
inline

Definition at line 69 of file collision_scene.h.

◆ operator=()

AllowedCollisionMatrix& exotica::AllowedCollisionMatrix::operator= ( const AllowedCollisionMatrix other)
inline

Definition at line 60 of file collision_scene.h.

◆ setEntry()

void exotica::AllowedCollisionMatrix::setEntry ( const std::string &  name1,
const std::string &  name2 
)
inline

Definition at line 70 of file collision_scene.h.

Member Data Documentation

◆ entries_

std::unordered_map<std::string, std::unordered_set<std::string> > exotica::AllowedCollisionMatrix::entries_
private

Definition at line 88 of file collision_scene.h.


The documentation for this class was generated from the following file:


exotica_core
Author(s): Yiming Yang, Michael Camilleri
autogenerated on Sun Jun 2 2024 02:58:18