#include <Tasks/QPContacts.h>
Public Member Functions | |
ContactId () | |
ContactId (int r1Index, int r2Index, const std::string &r1BodyName, const std::string &r2BodyName, int ambiguityId=-1) | |
bool | operator== (const ContactId &cId) const |
bool | operator!= (const ContactId &cId) const |
bool | operator< (const ContactId &cId) const |
Public Attributes | |
int | r1Index |
int | r2Index |
std::string | r1BodyName |
std::string | r2BodyName |
int | ambiguityId |
Unique identifier for a contact.
tasks::qp::ContactId::ContactId | ( | ) |
tasks::qp::ContactId::ContactId | ( | int | r1Index, |
int | r2Index, | ||
const std::string & | r1BodyName, | ||
const std::string & | r2BodyName, | ||
int | ambiguityId = -1 |
||
) |
r1Index | First robot imply in the contact. |
r2Index | Second robot imply in the contact. |
r1BodyName | Body name of robot r1Index imply in the contact. |
r2BodyName | Body name of robot r2Index imply in the contact. |
ambiguityId | If two or more contacts have the same r1Index, r2Index, r1BodyId, r2BodyId the ambiguityId is used to dissociate them. |
bool tasks::qp::ContactId::operator!= | ( | const ContactId & | cId | ) | const |
bool tasks::qp::ContactId::operator< | ( | const ContactId & | cId | ) | const |
bool tasks::qp::ContactId::operator== | ( | const ContactId & | cId | ) | const |
int tasks::qp::ContactId::ambiguityId |
std::string tasks::qp::ContactId::r1BodyName |
int tasks::qp::ContactId::r1Index |
std::string tasks::qp::ContactId::r2BodyName |
int tasks::qp::ContactId::r2Index |