Public Types | Public Member Functions | Private Attributes
collision_space::EnvironmentModel::AllowedCollisionMatrix Class Reference

Definition of a structure for the allowed collision matrix. More...

#include <environment.h>

List of all members.

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_typegetEntriesBimap () 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_

Detailed Description

Definition of a structure for the allowed collision matrix.

Definition at line 107 of file environment.h.


Member Typedef Documentation

typedef boost::bimap<std::string, unsigned int> collision_space::EnvironmentModel::AllowedCollisionMatrix::entry_type

Definition at line 171 of file environment.h.


Constructor & Destructor Documentation

Definition at line 111 of file environment.h.

collision_space::EnvironmentModel::AllowedCollisionMatrix::AllowedCollisionMatrix ( const std::vector< std::string > &  names,
bool  allowed = false 
)
Author:
Ioan Sucan

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.

Definition at line 91 of file environment.cpp.


Member Function Documentation

bool collision_space::EnvironmentModel::AllowedCollisionMatrix::addEntry ( const std::string &  name,
bool  allowed 
)

Definition at line 194 of file environment.cpp.

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.

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.

Definition at line 167 of file environment.h.

Definition at line 163 of file environment.h.

Definition at line 132 of file environment.cpp.

Definition at line 318 of file environment.cpp.

Definition at line 159 of file environment.cpp.


Member Data Documentation

Definition at line 182 of file environment.h.

Definition at line 184 of file environment.h.

Definition at line 181 of file environment.h.


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


collision_space
Author(s): Ioan Sucan/isucan@willowgarage.com
autogenerated on Mon Dec 2 2013 12:34:20