13#include <yarp/os/ConnectionReader.h>
14#include <yarp/os/ConnectionWriter.h>
20using namespace yarp::os;
36 for(iterator it=begin(); it!=end(); it++)
37 if(it->getBodyPart() == bp)
44 map<BodyPart, skinContactList> res;
45 for(iterator it=begin(); it!=end(); it++)
46 res[it->getBodyPart()].push_back(*it);
52 map<SkinPart, skinContactList> res;
53 for(iterator it=begin(); it!=end(); it++)
54 res[it->getSkinPart()].push_back(*it);
64 if(connection.expectInt32()!=BOTTLE_TAG_LIST)
67 int listLength = connection.expectInt32();
70 if(listLength!=size())
73 for(iterator it=begin(); it!=end(); it++)
74 if(!it->read(connection))
77 return !connection.isError();
84 connection.appendInt32(BOTTLE_TAG_LIST);
85 connection.appendInt32(size());
87 for(
auto it=begin(); it!=end(); it++)
88 if(!it->write(connection))
91 return !connection.isError();
97 const_iterator itSkin = begin();
98 for(dynContactList::iterator itDyn=res.begin(); itDyn!=res.end(); itDyn++)
117 for(const_iterator it=begin();it!=end();it++)
118 ss<<
"- "<<it->
toString(precision)<<
";\n";