38#include <yarp/os/RFModule.h>
86 void setName(
const std::string &_name);
123 virtual bool setTaxelPosesFromFile(
const std::string &_filePath,
const std::string &_spatial_sampling=
"default") {
return false; }
135 virtual std::string
toString(
int precision=0);
199 skinPart(
const std::string &_filePath);
222 const std::string &_spatial_sampling=
"default");
253 std::string
toString(
int precision=0);
virtual void print(int verbosity=0)
Print Method.
std::string getName()
Gets the name of the class.
int getSize()
Gets the size of the class.
void setSize(int _size)
Sets the size of the class.
skinPartBase()
Constructor.
virtual std::string toString(int precision=0)
toString Method
virtual bool setTaxelPosesFromFile(const std::string &_filePath, const std::string &_spatial_sampling="default")
Populates the skinPartBase by reading from a file.
std::recursive_mutex recursive_mtx
std::string getVersion()
Gets the version.
void setName(const std::string &_name)
Sets the name of the class.
virtual skinPartBase & operator=(const skinPartBase &_sp)
Copy Operator.
void setVersion(const std::string &_version)
Sets the version ("V1" / "V2" / "V2.1")
Class that encloses everything relate to a skinPart.
std::vector< int > taxel2Repr
Indexing variable used in the case of reducing the resolution - e.g.
bool mapTaxelsOntoThemselves()
Maps the taxels onto themselves, performing a 1:1 mapping.
std::map< int, std::list< unsigned int > > repr2TaxelList
Mapping in the opposite direction Indexed by representative taxel IDs, it stores lists of the taxels ...
std::vector< Taxel * > taxels
List of taxels that belong to the skinPart.
skinPart & operator=(const skinPart &_sp)
Copy Operator.
std::string spatial_sampling
Spatial_sampling used in building up the skinPart class.
bool setTaxelPosesFromFileOld(const std::string &_filePath)
Populates the skinPart by reading from a file - old convention.
int getTaxelsSize()
gets the size of the taxel vector (it differs from skinPartBase::getSize())
void clearTaxels()
Clears the vector of taxels properly and gracefully.
std::string toString(int precision=0)
toString Method
bool initRepresentativeTaxels()
Initializes the mapping between the taxels and their representatives (i.e.
bool setTaxelPosesFromFile(const std::string &_filePath, const std::string &_spatial_sampling="default")
Populates the skinPart by reading from a file.
void print(int verbosity=0)
Print Method.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.