Go to the documentation of this file.
28 #define extract_short( array, index ) ( (unsigned short)array[index] | ( (unsigned short)array[index + 1] << 8 ) )
29 #define TAC_CHECK_RES( res, expected, resp ) { \
30 if ( res < expected ) { \
31 dbgPrint( "Response length is too short, should be = %d (is %d)\n", expected, res ); \
32 if ( res > 0 ) free( resp ); \
35 status_t status = cmd_get_response_status( resp ); \
36 if ( status != E_SUCCESS ) \
38 dbgPrint( "Command not successful: %s\n", status_to_str( status ) ); \
67 std::shared_ptr<std::vector<short> >
data;
76 std::shared_ptr<std::vector<short> >
data;
90 static void printMatrix(
short* matrix,
int width,
int height);
96 void setAquisitionWindow(
unsigned char x1,
unsigned char y1,
unsigned char x2,
unsigned char y2);
115 std::shared_ptr<AbstractInterface> interface;
void setDeviceTag(std::string tag)
static void printSystemInformation(tac_system_information_t si)
std::shared_ptr< std::vector< short > > data
int getAcquisitionMask(char **mask, int *mask_len)
FrameData readSingleFrame()
void startPeriodicFrameAcquisition(unsigned short delay_ms)
void setAquisitionWindow(unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2)
std::shared_ptr< std::vector< short > > data
void setFrontEndGain(unsigned char gain)
friend std::ostream & operator<<(std::ostream &, const TactileSensor &)
void stopPeriodicFrameAcquisition(void)
static void printMatrix(short *matrix, int width, int height)
double a(double t, double a0, double j)
FrameData(std::shared_ptr< std::vector< short > > data, int count)
tac_system_information_t getSystemInformation()
void tareSensorMatrix(unsigned char operation)
unsigned short getThreshold()
unsigned char getFrontEndGain()
void setThreshold(short threshold)
bool tryGetDeviceTag(std::string &tag)
static void printMatrixInfo(tac_matrix_info_t *mi)
PeriodicFrameData(std::shared_ptr< std::vector< short > > data, int count, unsigned int timestamp)
float readDeviceTemperature()
tac_matrix_info_t getMatrixInformation()
PeriodicFrameData receicePeriodicFrame()
int setAdvanvedAcquisitionMask(char *mask)
int loop(char *data, int data_len)
std::string getSensorType()
std::string getDeviceTag()
TactileSensor(std::shared_ptr< AbstractInterface > interface)
std::string getInterfaceInfo()
std::ostream & operator<<(std::ostream &strm, const TactileSensor &a)