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 fully-qualified scoped names of collision filter groups and bodies.
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 fully-qualified name is only added once.
#include <drake/multibody/parsing/collision_filter_groups.h>
Public Member Functions | |
CollisionFilterGroups ()=default | |
bool | operator== (const CollisionFilterGroups &) const |
void | AddGroup (std::string_view 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 |
Implements CopyConstructible, CopyAssignable, MoveConstructible, MoveAssignable | |
CollisionFilterGroups (const CollisionFilterGroups &)=default | |
CollisionFilterGroups & | operator= (const CollisionFilterGroups &)=default |
CollisionFilterGroups (CollisionFilterGroups &&)=default | |
CollisionFilterGroups & | operator= (CollisionFilterGroups &&)=default |
|
default |
|
default |
|
default |
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 | ( | std::string_view | 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 |
|
default |
|
default |
bool operator== | ( | const CollisionFilterGroups & | ) | const |