#include <util.h>
Static Public Member Functions | |
| static void * | copymem (void *destination, const void *source, int count) |
| Copies count bytes from source to destintation. | |
| static double | strtodouble (char *text, int len, bool *error=NULL) |
| Custom string to double conversion function. | |
| static char * | strtrim (char *text) |
| Custom truncate (from left) string function. | |
| static char * | strtrimright (char *text) |
| Custom truncate (from right) string function. | |
| static void | free (void **var) |
| Frees a pointer and sets it to NULL. | |
| static void * | realloc (void *var, size_t size) |
| Resizes a pointer. | |
| static void | resync () |
| Resynchs the serial communication if error occured. | |
| static void | cout (char *text, int type=TEXT_NORMAL) |
| Prints colored text to the console. | |
| static void | waitForReturn () |
| Blocks until the return key is pressed. | |
| static float | wordToAngle (byte lo, byte hi) |
| Transforms 10bit angle representation to float representation. | |
| static void | angleToWord (float angle, byte &lo, byte &hi) |
| Transforms float angle representation to 10bit representation. | |
| static CMatrix | getJacobian (CMatrix *currentLinks, int size, CMatrix &targetHand) |
| Calculates jacobian. | |
| void * CUtil::copymem | ( | void * | destination, | |
| const void * | source, | |||
| int | count | |||
| ) | [static] |
Copies count bytes from source to destintation.
| double CUtil::strtodouble | ( | char * | text, | |
| int | len, | |||
| bool * | error = NULL | |||
| ) | [static] |
Custom string to double conversion function.
| char * CUtil::strtrim | ( | char * | text | ) | [static] |
Custom truncate (from left) string function.
| char * CUtil::strtrimright | ( | char * | text | ) | [static] |
Custom truncate (from right) string function.
| void CUtil::free | ( | void ** | var | ) | [static] |
Frees a pointer and sets it to NULL.
| void * CUtil::realloc | ( | void * | var, | |
| size_t | size | |||
| ) | [static] |
Resizes a pointer.
| void CUtil::resync | ( | ) | [static] |
Resynchs the serial communication if error occured.
| void CUtil::cout | ( | char * | text, | |
| int | type = TEXT_NORMAL | |||
| ) | [static] |
Prints colored text to the console.
| void CUtil::waitForReturn | ( | ) | [static] |
Blocks until the return key is pressed.
Transforms 10bit angle representation to float representation.
Transforms float angle representation to 10bit representation.
Calculates jacobian.
| targetHand | The target pose of the hand | |
| currentLinks | The current poses of all links (array) | |
| size | Size of currentLinks |
1.5.2