Definition of a structure for the allowed collision matrix. More...
#include <environment.h>
Public Types | |
typedef boost::bimap < std::string, unsigned int > | entry_type |
Public Member Functions | |
bool | addEntry (const std::string &name, bool allowed) |
AllowedCollisionMatrix () | |
AllowedCollisionMatrix (const std::vector< std::string > &names, bool allowed=false) | |
AllowedCollisionMatrix (const std::vector< std::vector< bool > > &all_coll_vectors, const std::map< std::string, unsigned int > &all_coll_indices) | |
AllowedCollisionMatrix (const AllowedCollisionMatrix &acm) | |
bool | changeEntry (bool allowed) |
bool | changeEntry (const std::string &name, bool allowed) |
bool | changeEntry (const std::string &name1, const std::string &name2, bool allowed) |
bool | changeEntry (const unsigned int ind_1, const unsigned int ind_2, bool allowed) |
bool | changeEntry (const std::string &name, const std::vector< std::string > &change_names, bool allowed) |
bool | changeEntry (const std::vector< std::string > &change_names_1, const std::vector< std::string > &change_names_2, bool allowed) |
void | getAllEntryNames (std::vector< std::string > &names) const |
bool | getAllowedCollision (const std::string &name1, const std::string &name2, bool &allowed_collision) const |
bool | getAllowedCollision (unsigned int i, unsigned int j, bool &allowed_collision) const |
const entry_type & | getEntriesBimap () const |
bool | getEntryIndex (const std::string &name, unsigned int &index) const |
bool | getEntryName (const unsigned int ind, std::string &name) const |
unsigned int | getSize () const |
bool | getValid () const |
bool | hasEntry (const std::string &name) const |
void | print (std::ostream &out) const |
bool | removeEntry (const std::string &name) |
Private Attributes | |
std::vector< std::vector< bool > > | allowed_entries_ |
entry_type | allowed_entries_bimap_ |
bool | valid_ |
Definition of a structure for the allowed collision matrix.
Definition at line 107 of file environment.h.
typedef boost::bimap<std::string, unsigned int> collision_space::EnvironmentModel::AllowedCollisionMatrix::entry_type |
Definition at line 171 of file environment.h.
Definition at line 111 of file environment.h.
collision_space::EnvironmentModel::AllowedCollisionMatrix::AllowedCollisionMatrix | ( | const std::vector< std::string > & | names, |
bool | allowed = false |
||
) |
Definition at line 41 of file environment.cpp.
collision_space::EnvironmentModel::AllowedCollisionMatrix::AllowedCollisionMatrix | ( | const std::vector< std::vector< bool > > & | all_coll_vectors, |
const std::map< std::string, unsigned int > & | all_coll_indices | ||
) |
Definition at line 53 of file environment.cpp.
collision_space::EnvironmentModel::AllowedCollisionMatrix::AllowedCollisionMatrix | ( | const AllowedCollisionMatrix & | acm | ) |
Definition at line 91 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::addEntry | ( | const std::string & | name, |
bool | allowed | ||
) |
Definition at line 194 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::changeEntry | ( | bool | allowed | ) |
Definition at line 212 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::changeEntry | ( | const std::string & | name, |
bool | allowed | ||
) |
Definition at line 249 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::changeEntry | ( | const std::string & | name1, |
const std::string & | name2, | ||
bool | allowed | ||
) |
Definition at line 223 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::changeEntry | ( | const unsigned int | ind_1, |
const unsigned int | ind_2, | ||
bool | allowed | ||
) |
Definition at line 239 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::changeEntry | ( | const std::string & | name, |
const std::vector< std::string > & | change_names, | ||
bool | allowed | ||
) |
Definition at line 263 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::changeEntry | ( | const std::vector< std::string > & | change_names_1, |
const std::vector< std::string > & | change_names_2, | ||
bool | allowed | ||
) |
Definition at line 297 of file environment.cpp.
void collision_space::EnvironmentModel::AllowedCollisionMatrix::getAllEntryNames | ( | std::vector< std::string > & | names | ) | const |
Definition at line 310 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::getAllowedCollision | ( | const std::string & | name1, |
const std::string & | name2, | ||
bool & | allowed_collision | ||
) | const |
Definition at line 98 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::getAllowedCollision | ( | unsigned int | i, |
unsigned int | j, | ||
bool & | allowed_collision | ||
) | const |
Definition at line 122 of file environment.cpp.
const entry_type& collision_space::EnvironmentModel::AllowedCollisionMatrix::getEntriesBimap | ( | ) | const [inline] |
Definition at line 173 of file environment.h.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::getEntryIndex | ( | const std::string & | name, |
unsigned int & | index | ||
) | const |
Definition at line 137 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::getEntryName | ( | const unsigned int | ind, |
std::string & | name | ||
) | const |
Definition at line 148 of file environment.cpp.
unsigned int collision_space::EnvironmentModel::AllowedCollisionMatrix::getSize | ( | ) | const [inline] |
Definition at line 167 of file environment.h.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::getValid | ( | ) | const [inline] |
Definition at line 163 of file environment.h.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::hasEntry | ( | const std::string & | name | ) | const |
Definition at line 132 of file environment.cpp.
void collision_space::EnvironmentModel::AllowedCollisionMatrix::print | ( | std::ostream & | out | ) | const |
Definition at line 318 of file environment.cpp.
bool collision_space::EnvironmentModel::AllowedCollisionMatrix::removeEntry | ( | const std::string & | name | ) |
Definition at line 159 of file environment.cpp.
std::vector<std::vector<bool> > collision_space::EnvironmentModel::AllowedCollisionMatrix::allowed_entries_ [private] |
Definition at line 182 of file environment.h.
entry_type collision_space::EnvironmentModel::AllowedCollisionMatrix::allowed_entries_bimap_ [private] |
Definition at line 184 of file environment.h.
Definition at line 181 of file environment.h.