Class to create an updater thread for continuously updating tactile sensor data. More...
#include <dsaboost.h>
Public Member Functions | |
cDSAUpdater (cDSA *_ts, int _error_threshold=DEFAULT_ERROR_THRESHOLD) | |
void | interrupt () |
interrupt the updater thread | |
Static Public Attributes | |
static int const | DEFAULT_ERROR_THRESHOLD = 16 |
default error threshold, see parameter error_threshold in CTOR |
Class to create an updater thread for continuously updating tactile sensor data.
Uses boost::thread from the boost library (http://www.boost.org)!
cDSAUpdater::cDSAUpdater | ( | cDSA * | _ts, |
int | _error_threshold = DEFAULT_ERROR_THRESHOLD |
||
) |
CTOR: start an updater thread for the connected tactile sensor _ts
Make remote DSA send frames. Create a thread that updates _ts->frame continuously
_ts | - ptr to already initialized cDSA tactile sensor object |
_error_threshold | - the number of errors that causes a "reset" of the connection to the remote DSA: communication errors with the remote DSACON32m controllers are counted,
|
void cDSAUpdater::interrupt | ( | ) | [inline] |
interrupt the updater thread
int const cDSAUpdater::DEFAULT_ERROR_THRESHOLD = 16 [static] |
default error threshold, see parameter error_threshold in CTOR