iCub-main
|
#include <compensationThread.h>
Public Types | |
enum | CompensationThreadState { calibration , compensation } |
Public Member Functions | |
CompensationThread (string name, ResourceFinder *rf, string robotName, double _compensationGain, double _contactCompensationGain, int addThreshold, float minBaseline, bool zeroUpRawData, int period, bool binarization, bool smoothFilter, float smoothFactor) | |
bool | threadInit () |
void | threadRelease () |
void | run () |
void | calibrate () |
void | setBinarization (bool value) |
void | setSmoothFilter (bool value) |
bool | setSmoothFactor (float value) |
bool | setAddThreshold (unsigned int thr) |
bool | setCompensationGain (double gain) |
bool | setContactCompensationGain (double gain) |
bool | setMaxNeighborDistance (double dist) |
bool | setTaxelPosition (SkinPart sp, unsigned int taxelId, const Vector &position) |
bool | setTaxelPositions (SkinPart sp, const Vector &positions) |
bool | setTaxelOrientation (SkinPart sp, unsigned int taxelId, const Vector &orientation) |
bool | setTaxelOrientations (SkinPart sp, const vector< Vector > &orientations) |
bool | setTaxelPose (SkinPart sp, unsigned int taxelId, const Vector &pose) |
bool | setTaxelPoses (SkinPart sp, const vector< Vector > &poses) |
bool | setTaxelPoses (SkinPart sp, const Vector &poses) |
Vector | getTouchThreshold () |
bool | getBinarization () |
bool | getSmoothFilter () |
float | getSmoothFactor () |
unsigned int | getAddThreshold () |
double | getCompensationGain () |
double | getContactCompensationGain () |
double | getMaxNeighborDistance () |
bool | isCalibrating () |
Vector | getTaxelPosition (SkinPart sp, unsigned int taxelId) |
vector< Vector > | getTaxelPositions (SkinPart sp=SKIN_PART_ALL) |
Vector | getTaxelOrientation (SkinPart sp, unsigned int taxelId) |
vector< Vector > | getTaxelOrientations (SkinPart sp=SKIN_PART_ALL) |
Vector | getTaxelPose (SkinPart sp, unsigned int taxelId) |
vector< Vector > | getTaxelPoses (SkinPart sp=SKIN_PART_ALL) |
double | getPoseConfidence (SkinPart sp, unsigned int taxelId) |
Vector | getPoseConfidences (SkinPart sp) |
bool | enableSkinPart (SkinPart sp) |
bool | disableSkinPart (SkinPart sp) |
bool | isSkinEnabled (SkinPart sp) |
vector< SkinPart > | getSkinParts () |
Bottle | getInfo () |
Definition at line 49 of file compensationThread.h.
Enumerator | |
---|---|
calibration | |
compensation |
Definition at line 52 of file compensationThread.h.
CompensationThread::CompensationThread | ( | string | name, |
ResourceFinder * | rf, | ||
string | robotName, | ||
double | _compensationGain, | ||
double | _contactCompensationGain, | ||
int | addThreshold, | ||
float | minBaseline, | ||
bool | zeroUpRawData, | ||
int | period, | ||
bool | binarization, | ||
bool | smoothFilter, | ||
float | smoothFactor | ||
) |
Definition at line 34 of file compensationThread.cpp.
void CompensationThread::calibrate | ( | ) |
Definition at line 197 of file compensationThread.cpp.
bool CompensationThread::disableSkinPart | ( | SkinPart | sp | ) |
Definition at line 694 of file compensationThread.cpp.
bool CompensationThread::enableSkinPart | ( | SkinPart | sp | ) |
Definition at line 686 of file compensationThread.cpp.
unsigned int CompensationThread::getAddThreshold | ( | ) |
Definition at line 566 of file compensationThread.cpp.
bool CompensationThread::getBinarization | ( | ) |
Definition at line 575 of file compensationThread.cpp.
double CompensationThread::getCompensationGain | ( | ) |
Definition at line 569 of file compensationThread.cpp.
double CompensationThread::getContactCompensationGain | ( | ) |
Definition at line 572 of file compensationThread.cpp.
Bottle CompensationThread::getInfo | ( | ) |
Definition at line 386 of file compensationThread.cpp.
|
inline |
Definition at line 85 of file compensationThread.h.
double CompensationThread::getPoseConfidence | ( | SkinPart | sp, |
unsigned int | taxelId | ||
) |
Definition at line 662 of file compensationThread.cpp.
Vector CompensationThread::getPoseConfidences | ( | SkinPart | sp | ) |
Definition at line 671 of file compensationThread.cpp.
vector< SkinPart > CompensationThread::getSkinParts | ( | ) |
Definition at line 680 of file compensationThread.cpp.
float CompensationThread::getSmoothFactor | ( | ) |
Definition at line 586 of file compensationThread.cpp.
bool CompensationThread::getSmoothFilter | ( | ) |
Definition at line 578 of file compensationThread.cpp.
Vector CompensationThread::getTaxelOrientation | ( | SkinPart | sp, |
unsigned int | taxelId | ||
) |
Definition at line 613 of file compensationThread.cpp.
vector< Vector > CompensationThread::getTaxelOrientations | ( | SkinPart | sp = SKIN_PART_ALL | ) |
Definition at line 621 of file compensationThread.cpp.
Vector CompensationThread::getTaxelPose | ( | SkinPart | sp, |
unsigned int | taxelId | ||
) |
Definition at line 637 of file compensationThread.cpp.
vector< Vector > CompensationThread::getTaxelPoses | ( | SkinPart | sp = SKIN_PART_ALL | ) |
Definition at line 645 of file compensationThread.cpp.
Vector CompensationThread::getTaxelPosition | ( | SkinPart | sp, |
unsigned int | taxelId | ||
) |
Definition at line 589 of file compensationThread.cpp.
vector< Vector > CompensationThread::getTaxelPositions | ( | SkinPart | sp = SKIN_PART_ALL | ) |
Definition at line 597 of file compensationThread.cpp.
Vector CompensationThread::getTouchThreshold | ( | ) |
Definition at line 553 of file compensationThread.cpp.
bool CompensationThread::isCalibrating | ( | ) |
Definition at line 581 of file compensationThread.cpp.
bool CompensationThread::isSkinEnabled | ( | SkinPart | sp | ) |
Definition at line 702 of file compensationThread.cpp.
void CompensationThread::run | ( | void | ) |
Definition at line 205 of file compensationThread.cpp.
bool CompensationThread::setAddThreshold | ( | unsigned int | thr | ) |
Definition at line 436 of file compensationThread.cpp.
void CompensationThread::setBinarization | ( | bool | value | ) |
Definition at line 410 of file compensationThread.cpp.
bool CompensationThread::setCompensationGain | ( | double | gain | ) |
Definition at line 446 of file compensationThread.cpp.
bool CompensationThread::setContactCompensationGain | ( | double | gain | ) |
Definition at line 456 of file compensationThread.cpp.
bool CompensationThread::setMaxNeighborDistance | ( | double | dist | ) |
Definition at line 465 of file compensationThread.cpp.
bool CompensationThread::setSmoothFactor | ( | float | value | ) |
Definition at line 425 of file compensationThread.cpp.
void CompensationThread::setSmoothFilter | ( | bool | value | ) |
Definition at line 416 of file compensationThread.cpp.
bool CompensationThread::setTaxelOrientation | ( | SkinPart | sp, |
unsigned int | taxelId, | ||
const Vector & | orientation | ||
) |
Definition at line 490 of file compensationThread.cpp.
bool CompensationThread::setTaxelOrientations | ( | SkinPart | sp, |
const vector< Vector > & | orientations | ||
) |
Definition at line 498 of file compensationThread.cpp.
bool CompensationThread::setTaxelPose | ( | SkinPart | sp, |
unsigned int | taxelId, | ||
const Vector & | pose | ||
) |
Definition at line 506 of file compensationThread.cpp.
bool CompensationThread::setTaxelPoses | ( | SkinPart | sp, |
const Vector & | poses | ||
) |
Definition at line 522 of file compensationThread.cpp.
bool CompensationThread::setTaxelPoses | ( | SkinPart | sp, |
const vector< Vector > & | poses | ||
) |
Definition at line 514 of file compensationThread.cpp.
bool CompensationThread::setTaxelPosition | ( | SkinPart | sp, |
unsigned int | taxelId, | ||
const Vector & | position | ||
) |
Definition at line 474 of file compensationThread.cpp.
bool CompensationThread::setTaxelPositions | ( | SkinPart | sp, |
const Vector & | positions | ||
) |
Definition at line 482 of file compensationThread.cpp.
bool CompensationThread::threadInit | ( | ) |
Definition at line 49 of file compensationThread.cpp.
void CompensationThread::threadRelease | ( | ) |
Definition at line 318 of file compensationThread.cpp.