se2ez
|
An allowed collision map / matrix for the robot. Stores what frames are allowed to collide with each other. More...
#include <collision.h>
Public Member Functions | |
void | disable (const std::string &a, const std::string &b) |
Disable collision checking between frame a and b. More... | |
void | enable (const std::string &a, const std::string &b) |
Enable collision checking between frame a and b. More... | |
bool | collide (const std::string &a, const std::string &b) const |
Returns true if frame a and frame b can collide. More... | |
void | clear () |
Clears all entries within the ACM. More... | |
Private Attributes | |
std::set< std::pair< std::string, std::string > > | disabled_ |
Set of all disabled frame pairs. More... | |
An allowed collision map / matrix for the robot. Stores what frames are allowed to collide with each other.
Definition at line 38 of file collision.h.
void ACM::clear | ( | ) |
Clears all entries within the ACM.
Definition at line 36 of file collision.cpp.
bool ACM::collide | ( | const std::string & | a, |
const std::string & | b | ||
) | const |
Returns true if frame a and frame b can collide.
[in] | a | One frame. |
[in] | b | Other frame. |
Definition at line 24 of file collision.cpp.
void ACM::disable | ( | const std::string & | a, |
const std::string & | b | ||
) |
Disable collision checking between frame a and b.
[in] | a | One frame. |
[in] | b | Other frame. |
Definition at line 9 of file collision.cpp.
void ACM::enable | ( | const std::string & | a, |
const std::string & | b | ||
) |
Enable collision checking between frame a and b.
[in] | a | One frame. |
[in] | b | Other frame. |
Definition at line 15 of file collision.cpp.
|
private |
Set of all disabled frame pairs.
Definition at line 65 of file collision.h.