iCub-main
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
TouchSensor Class Reference

#include <TouchSensor.h>

+ Inheritance diagram for TouchSensor:

Public Member Functions

void setColor (unsigned char r, unsigned char g, unsigned char b)
 
void setCalibrationFlag (bool use_calibrated_skin)
 
void resize (int width, int height, int margin)
 
virtual ~TouchSensor ()
 
int Abs (int x)
 
int get_nTaxels ()
 
void eval_light (unsigned char *image)
 
void eval (unsigned char *image)
 
void setActivationFirst7 (unsigned char *data)
 
void setActivationLast5 (unsigned char *data)
 
void setActivationFromPortData (double val, int id)
 
virtual void draw (unsigned char *image)
 

Public Attributes

int min_tax
 
int max_tax
 

Protected Member Functions

 TouchSensor ()
 
void dither (int x, int y, unsigned char *image)
 
void drawLine (unsigned char *image, int x0, int y0, int x1, int y1)
 
void drawCircle (unsigned char *image, int cx, int cy, double radius)
 

Protected Attributes

bool calibrated_skin
 
double dX [MAX_TAXELS]
 
double dY [MAX_TAXELS]
 
double dXv [8]
 
double dYv [8]
 
double dXc
 
double dYc
 
double dGain
 
int ilayoutNum
 
int ilrMirror
 
double m_Radius
 
double m_RadiusOrig
 
double activation [MAX_TAXELS]
 
double remapped_activation [MAX_TAXELS]
 
bool connected [MAX_TAXELS]
 
unsigned char R_MAX
 
unsigned char G_MAX
 
unsigned char B_MAX
 
int m_maxRangeLight
 
int x [MAX_TAXELS]
 
int y [MAX_TAXELS]
 
int xv [8]
 
int yv [8]
 
int nVerts
 
int nTaxels
 
int xMin
 
int xMax
 
int yMin
 
int yMax
 
int m_Width
 
int m_Height
 

Static Protected Attributes

static double dXmin = VERY_FAR
 
static double dXmax =-VERY_FAR
 
static double dYmin = VERY_FAR
 
static double dYmax =-VERY_FAR
 
static int m_maxRange =0
 
static double * Exponential =0
 

Detailed Description

Definition at line 20 of file TouchSensor.h.

Constructor & Destructor Documentation

◆ TouchSensor()

TouchSensor::TouchSensor ( )
inlineprotected

Definition at line 26 of file TouchSensor.h.

◆ ~TouchSensor()

virtual TouchSensor::~TouchSensor ( )
inlinevirtual

Definition at line 109 of file TouchSensor.h.

Member Function Documentation

◆ Abs()

int TouchSensor::Abs ( int  x)
inline

Definition at line 118 of file TouchSensor.h.

◆ dither()

void TouchSensor::dither ( int  x,
int  y,
unsigned char *  image 
)
inlineprotected

Definition at line 289 of file TouchSensor.h.

◆ draw()

virtual void TouchSensor::draw ( unsigned char *  image)
inlinevirtual

Reimplemented in Triangle_10pad, PalmR, PalmL, fakePalm, CER_SH_TP, CER_SH_TD, CER_SH_PP, CER_SH_PDR, and CER_SH_PDL.

Definition at line 275 of file TouchSensor.h.

◆ drawCircle()

void TouchSensor::drawCircle ( unsigned char *  image,
int  cx,
int  cy,
double  radius 
)
inlineprotected

Definition at line 353 of file TouchSensor.h.

◆ drawLine()

void TouchSensor::drawLine ( unsigned char *  image,
int  x0,
int  y0,
int  x1,
int  y1 
)
inlineprotected

Definition at line 340 of file TouchSensor.h.

◆ eval()

void TouchSensor::eval ( unsigned char *  image)
inline

Definition at line 177 of file TouchSensor.h.

◆ eval_light()

void TouchSensor::eval_light ( unsigned char *  image)
inline

Definition at line 128 of file TouchSensor.h.

◆ get_nTaxels()

int TouchSensor::get_nTaxels ( )
inline

Definition at line 123 of file TouchSensor.h.

◆ resize()

void TouchSensor::resize ( int  width,
int  height,
int  margin 
)
inline

Definition at line 48 of file TouchSensor.h.

◆ setActivationFirst7()

void TouchSensor::setActivationFirst7 ( unsigned char *  data)
inline

Definition at line 237 of file TouchSensor.h.

◆ setActivationFromPortData()

void TouchSensor::setActivationFromPortData ( double  val,
int  id 
)
inline

Definition at line 252 of file TouchSensor.h.

◆ setActivationLast5()

void TouchSensor::setActivationLast5 ( unsigned char *  data)
inline

Definition at line 244 of file TouchSensor.h.

◆ setCalibrationFlag()

void TouchSensor::setCalibrationFlag ( bool  use_calibrated_skin)
inline

Definition at line 43 of file TouchSensor.h.

◆ setColor()

void TouchSensor::setColor ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)
inline

Definition at line 36 of file TouchSensor.h.

Member Data Documentation

◆ activation

double TouchSensor::activation[MAX_TAXELS]
protected

Definition at line 391 of file TouchSensor.h.

◆ B_MAX

unsigned char TouchSensor::B_MAX
protected

Definition at line 395 of file TouchSensor.h.

◆ calibrated_skin

bool TouchSensor::calibrated_skin
protected

Definition at line 24 of file TouchSensor.h.

◆ connected

bool TouchSensor::connected[MAX_TAXELS]
protected

Definition at line 393 of file TouchSensor.h.

◆ dGain

double TouchSensor::dGain
protected

Definition at line 386 of file TouchSensor.h.

◆ dX

double TouchSensor::dX[MAX_TAXELS]
protected

Definition at line 382 of file TouchSensor.h.

◆ dXc

double TouchSensor::dXc
protected

Definition at line 385 of file TouchSensor.h.

◆ dXmax

double TouchSensor::dXmax =-VERY_FAR
staticprotected

Definition at line 383 of file TouchSensor.h.

◆ dXmin

double TouchSensor::dXmin = VERY_FAR
staticprotected

Definition at line 383 of file TouchSensor.h.

◆ dXv

double TouchSensor::dXv[8]
protected

Definition at line 384 of file TouchSensor.h.

◆ dY

double TouchSensor::dY[MAX_TAXELS]
protected

Definition at line 382 of file TouchSensor.h.

◆ dYc

double TouchSensor::dYc
protected

Definition at line 385 of file TouchSensor.h.

◆ dYmax

double TouchSensor::dYmax =-VERY_FAR
staticprotected

Definition at line 383 of file TouchSensor.h.

◆ dYmin

double TouchSensor::dYmin = VERY_FAR
staticprotected

Definition at line 383 of file TouchSensor.h.

◆ dYv

double TouchSensor::dYv[8]
protected

Definition at line 384 of file TouchSensor.h.

◆ Exponential

double * TouchSensor::Exponential =0
staticprotected

Definition at line 399 of file TouchSensor.h.

◆ G_MAX

unsigned char TouchSensor::G_MAX
protected

Definition at line 395 of file TouchSensor.h.

◆ ilayoutNum

int TouchSensor::ilayoutNum
protected

Definition at line 387 of file TouchSensor.h.

◆ ilrMirror

int TouchSensor::ilrMirror
protected

Definition at line 388 of file TouchSensor.h.

◆ m_Height

int TouchSensor::m_Height
protected

Definition at line 410 of file TouchSensor.h.

◆ m_maxRange

int TouchSensor::m_maxRange =0
staticprotected

Definition at line 398 of file TouchSensor.h.

◆ m_maxRangeLight

int TouchSensor::m_maxRangeLight
protected

Definition at line 397 of file TouchSensor.h.

◆ m_Radius

double TouchSensor::m_Radius
protected

Definition at line 390 of file TouchSensor.h.

◆ m_RadiusOrig

double TouchSensor::m_RadiusOrig
protected

Definition at line 390 of file TouchSensor.h.

◆ m_Width

int TouchSensor::m_Width
protected

Definition at line 410 of file TouchSensor.h.

◆ max_tax

int TouchSensor::max_tax

Definition at line 414 of file TouchSensor.h.

◆ min_tax

int TouchSensor::min_tax

Definition at line 413 of file TouchSensor.h.

◆ nTaxels

int TouchSensor::nTaxels
protected

Definition at line 406 of file TouchSensor.h.

◆ nVerts

int TouchSensor::nVerts
protected

Definition at line 405 of file TouchSensor.h.

◆ R_MAX

unsigned char TouchSensor::R_MAX
protected

Definition at line 395 of file TouchSensor.h.

◆ remapped_activation

double TouchSensor::remapped_activation[MAX_TAXELS]
protected

Definition at line 392 of file TouchSensor.h.

◆ x

int TouchSensor::x[MAX_TAXELS]
protected

Definition at line 402 of file TouchSensor.h.

◆ xMax

int TouchSensor::xMax
protected

Definition at line 408 of file TouchSensor.h.

◆ xMin

int TouchSensor::xMin
protected

Definition at line 408 of file TouchSensor.h.

◆ xv

int TouchSensor::xv[8]
protected

Definition at line 403 of file TouchSensor.h.

◆ y

int TouchSensor::y[MAX_TAXELS]
protected

Definition at line 402 of file TouchSensor.h.

◆ yMax

int TouchSensor::yMax
protected

Definition at line 408 of file TouchSensor.h.

◆ yMin

int TouchSensor::yMin
protected

Definition at line 408 of file TouchSensor.h.

◆ yv

int TouchSensor::yv[8]
protected

Definition at line 403 of file TouchSensor.h.


The documentation for this class was generated from the following files: