![]() |
RML
1.0
Robotics Mathematical Library
|
Classes | |
| struct | Dotter |
| struct | FirstOrderFilter |
| struct | Percentage |
| struct | Spinner |
| My first functor!!! :D. More... | |
| struct | square |
| Functor for getting sum of previous result and square of current element (inner product can be used instead) More... | |
| struct | Timer |
Typedefs | |
| template<typename K , typename V > | |
| using | MapIterator = typename std::map< K, V >::const_iterator |
Functions | |
| template<class Object > | |
| void | PrettyPrint (const Object &A, std::string name, const char *color=tc::white) |
| int | MakeDir (const char *path) |
| Create folder if not existing. | |
| template<typename T > | |
| std::string | toStringPointDecimal (T val) |
| template<typename T > | |
| void | PrintArray (T arr, const int size, const char delimiter) |
| template<typename T > | |
| void | PrintCMATArray (T arr, const int size, const char delimiter) |
| template<typename T > | |
| std::string | ArrayToString (T arr, const int size, const char delimiter) |
| template<typename T > | |
| std::string | CMATArrayToString (T arr, const int size, const char delimiter) |
| template<typename T > | |
| void | PrintSTLVector (T vecObj, const char delimiter, const std::string preText="") |
| template<typename T > | |
| std::string | STLVectorToString (T vecObj, const char delimiter, const std::string preText="") |
| template<typename T > | |
| void | PrintSTLVectOfVects (T vecObj, const char delimiter) |
| std::string | GetCurrentDateFormatted () |
| template<typename K , typename V > | |
| bool | FindMapKeyByValue (const std::map< K, V > myMap, const V value, K &key) |
| bool | CopyFile (const std::string &inputFile, const std::string &outputFile) |
Escape sequence \033[m or [m
color : [\033[ m] ]
e.g. bg=Blue, Bold, fg=Red
Text attributes 0 All attributes off 1 Bold on 4 Underscore (on monochrome display adapter only) 5 Blink on 7 Reverse video on 8 Concealed on
Foreground colors 0;30 Black 1;30 Dark Gray 0;31 Red 1;31 Light Red 0;32 Green 1;32 Light Green 0;33 Brown 1;33 Yellow 0;34 Blue 1;34 Light Blue 0;35 Purple 1;35 Light Purple 0;36 Cyan 1;36 Light Cyan 0;37 Light Gray 1;37 White
| using futils::MapIterator = typedef typename std::map<K,V>::const_iterator |
| std::string futils::ArrayToString | ( | T | arr, |
| const int | size, | ||
| const char | delimiter | ||
| ) |
| std::string futils::CMATArrayToString | ( | T | arr, |
| const int | size, | ||
| const char | delimiter | ||
| ) |
|
inline |
| bool futils::FindMapKeyByValue | ( | const std::map< K, V > | myMap, |
| const V | value, | ||
| K & | key | ||
| ) |
|
inline |
Returns the current date and time formatted as Y-m-d_H.M.S
|
inline |
Create folder if not existing.
| path | of the folder |
S_IRWXU | S_IRWXG | S_IRWXO Read/write/search permissions for owner and group and others. Since mkdir() masks the mode with umask(), a further chmod() is needed.
| void futils::PrettyPrint | ( | const Object & | A, |
| std::string | name, | ||
| const char * | color = tc::white |
||
| ) |
| void futils::PrintArray | ( | T | arr, |
| const int | size, | ||
| const char | delimiter | ||
| ) |
| void futils::PrintCMATArray | ( | T | arr, |
| const int | size, | ||
| const char | delimiter | ||
| ) |
| void futils::PrintSTLVectOfVects | ( | T | vecObj, |
| const char | delimiter | ||
| ) |
| void futils::PrintSTLVector | ( | T | vecObj, |
| const char | delimiter, | ||
| const std::string | preText = "" |
||
| ) |
| std::string futils::STLVectorToString | ( | T | vecObj, |
| const char | delimiter, | ||
| const std::string | preText = "" |
||
| ) |
|
inline |