This is storage for parsed collision filter groups and group pairs.
This data may be useful to users needing to compose further collision filters in code, without having to restate the data already captured in model files.
The contents of this object will be made up of names of collision filter groups and bodies. By convention, the name strings are treated as scoped names.
Note that this object enforces few invariants on the data. In the expected workflow, the parser will add groups and exclusion pairs found during parsing. The only condition checked here is that a group with a given name is only added once.
#include <drake/multibody/parsing/collision_filter_groups.h>
Public Member Functions | |
CollisionFilterGroups () | |
~CollisionFilterGroups () | |
bool | operator== (const CollisionFilterGroups &) const |
void | AddGroup (const std::string &name, const std::set< std::string > &members) |
Adds a new collision filter group. More... | |
void | AddExclusionPair (const SortedPair< std::string > &pair) |
Adds an exclusion pair between two collision filter groups. More... | |
bool | empty () const |
const std::map< std::string, std::set< std::string > > & | groups () const |
const std::set< SortedPair< std::string > > & | exclusion_pairs () const |
std::string | to_string () const |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
CollisionFilterGroups (const CollisionFilterGroups &) | |
CollisionFilterGroups & | operator= (const CollisionFilterGroups &) |
CollisionFilterGroups (CollisionFilterGroups &&) | |
CollisionFilterGroups & | operator= (CollisionFilterGroups &&) |
CollisionFilterGroups | ( | const CollisionFilterGroups & | ) |
void AddExclusionPair | ( | const SortedPair< std::string > & | pair | ) |
Adds an exclusion pair between two collision filter groups.
pair | a pair of fully-qualified scoped names of groups. |
void AddGroup | ( | const std::string & | name, |
const std::set< std::string > & | members | ||
) |
Adds a new collision filter group.
name | the fully-qualified scoped name of the group being defined. |
members | the fully-qualified scoped names of the member bodies. |
bool empty | ( | ) | const |
const std::set<SortedPair<std::string> >& exclusion_pairs | ( | ) | const |
const std::map<std::string, std::set<std::string> >& groups | ( | ) | const |
CollisionFilterGroups& operator= | ( | const CollisionFilterGroups & | ) |
CollisionFilterGroups& operator= | ( | CollisionFilterGroups && | ) |
bool operator== | ( | const CollisionFilterGroups & | ) | const |
std::string to_string | ( | ) | const |