iCub-main
Classes | Functions
skinDynLib
+ Collaboration diagram for skinDynLib:

Classes

class  iCub::skinDynLib::dynContact
 
class  iCub::skinDynLib::dynContactList
 
class  iCub::skinDynLib::iCubSkin
 
class  iCub::skinDynLib::skinContact
 
class  iCub::skinDynLib::skinContactList
 
class  iCub::skinDynLib::skinPart
 
class  iCub::skinDynLib::Taxel
 

Functions

BodyPart iCub::skinDynLib::getBodyPart (SkinPart s)
 
std::vector< SkinPartiCub::skinDynLib::getSkinParts (BodyPart b)
 
int iCub::skinDynLib::getLinkNum (SkinPart s)
 
SkinPart iCub::skinDynLib::getSkinPartFromString (const std::string skinPartString)
 
yarp::sig::Vector iCub::skinDynLib::toVector (yarp::sig::Matrix m)
 
yarp::sig::Vector iCub::skinDynLib::vectorFromBottle (const yarp::os::Bottle b, int in, const int size)
 
std::list< unsigned int > iCub::skinDynLib::vectorofIntEqualto (const std::vector< int > vec, const int val)
 

Detailed Description

Class representing a contact on the tactile sensor system (skin) of iCub.

Description

Tested OS

Windows, Linux

Author
Andrea Del Prete

Copyright (C) 2010 RobotCub Consortium CopyPolicy: Released under the terms of the GNU GPL v2.0.

Function Documentation

◆ getBodyPart()

BodyPart iCub::skinDynLib::getBodyPart ( SkinPart  s)

Get the body part associated to the specified skin part.

Parameters
sthe interested skin part
Returns
the associated body part

Definition at line 26 of file common.cpp.

◆ getLinkNum()

int iCub::skinDynLib::getLinkNum ( SkinPart  s)

Get the link number associated to the specified skin part.

Parameters
sthe interested skin part
Returns
the associated link number, -1 if the link number is not defined

Definition at line 34 of file common.cpp.

◆ getSkinPartFromString()

SkinPart iCub::skinDynLib::getSkinPartFromString ( const std::string  skinPartString)

Get the SkinPart enum from the string version - essentially the opposite of SkinPart_s[]

Parameters
skinPartStringthe string of the skin part
Returns
the SkinPart enum, SKIN_PART_UNKNOWN if the string cannot be resolved

Definition at line 42 of file common.cpp.

◆ getSkinParts()

vector< SkinPart > iCub::skinDynLib::getSkinParts ( BodyPart  b)

Get the list of skin parts associated to the specified body part.

Parameters
bthe interested body part
Returns
list of skin part associated to the specified body part

Definition at line 17 of file common.cpp.

◆ toVector()

yarp::sig::Vector iCub::skinDynLib::toVector ( yarp::sig::Matrix  m)

Converts a yarp::sig::Matrix to a yarp::sig::Vector.

Parameters
mthe matrix to convert
Returns
the matrix converted to a vector

Definition at line 77 of file common.cpp.

◆ vectorFromBottle()

yarp::sig::Vector iCub::skinDynLib::vectorFromBottle ( const yarp::os::Bottle  b,
int  in,
const int  size 
)

Retrieves a vector from a bottle.

Parameters
bthe bottle to read the vector from
inthe start index
sizethe size of the vector (obviously, this have to hold: b.size()>in+size )
Returns
the vector extracted from the bottle

Definition at line 89 of file common.cpp.

◆ vectorofIntEqualto()

std::list<unsigned int> iCub::skinDynLib::vectorofIntEqualto ( const std::vector< int >  vec,
const int  val 
)
inline

Returns a list of indexes corresponding to the values of vec that are equal to val.

Parameters
vecthe vector under evaluation
valthe value to compare the vector to
Returns
a list of indexes

Definition at line 259 of file common.h.