iCub-main
|
Class representing a list of external contacts acting on the iCub' skin. More...
#include <skinContactList.h>
Public Member Functions | |
skinContactList () | |
skinContactList (const size_type &n, const skinContact &value=skinContact()) | |
virtual skinContactList | filterBodyPart (const BodyPart &bp) |
Select all the contacts that have the specified body part. | |
virtual std::map< BodyPart, skinContactList > | splitPerBodyPart () |
Split the list in N lists dividing the contacts per body part. | |
virtual std::map< SkinPart, skinContactList > | splitPerSkinPart () |
Split the list in N lists dividing the contacts per skin part. | |
virtual bool | read (yarp::os::ConnectionReader &connection) |
virtual bool | write (yarp::os::ConnectionWriter &connection) const |
Write skinContactList to a connection. | |
virtual dynContactList | toDynContactList () const |
Convert this skinContactList to a dynContactList casting all its elements to dynContact. | |
virtual std::string | toString (const int &precision=-1) const |
Create a skinContactList starting from a dynContactList. | |
Class representing a list of external contacts acting on the iCub' skin.
Definition at line 44 of file skinContactList.h.
skinContactList::skinContactList | ( | ) |
Definition at line 27 of file skinContactList.cpp.
skinContactList::skinContactList | ( | const size_type & | n, |
const skinContact & | value = skinContact() |
||
) |
Definition at line 30 of file skinContactList.cpp.
|
virtual |
Select all the contacts that have the specified body part.
bp | the interested body part |
Definition at line 33 of file skinContactList.cpp.
|
virtual |
Definition at line 60 of file skinContactList.cpp.
|
virtual |
Split the list in N lists dividing the contacts per body part.
Definition at line 42 of file skinContactList.cpp.
|
virtual |
Split the list in N lists dividing the contacts per skin part.
Definition at line 50 of file skinContactList.cpp.
|
virtual |
Convert this skinContactList to a dynContactList casting all its elements to dynContact.
Definition at line 94 of file skinContactList.cpp.
|
virtual |
Create a skinContactList starting from a dynContactList.
Definition at line 114 of file skinContactList.cpp.
|
virtual |
Write skinContactList to a connection.
return true iff a skinContactList was written correctly
Definition at line 80 of file skinContactList.cpp.