![]() |
Laelaps
2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
|
Laelaps common utilities. More...
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
#include <math.h>
#include <string>
#include <vector>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "Laelaps/laelaps.h"
Go to the source code of this file.
Classes | |
class | laelaps::Dim |
Object width x height x length dimensions class. More... | |
Namespaces | |
laelaps | |
The Laelaps namespace encapsulates all Laelaps related constructs. | |
Macros | |
#define | M_TAU (2.0 * M_PI) |
tau = 2 * pi | |
Functions | |
uint_t | laelaps::strToVersion (const std::string &str) |
Convert version dotted string to integer equivalent. More... | |
const char * | laelaps::getStrError (const int ecode) |
Get the error string describing the Laelaps error code. More... | |
const char * | laelaps::boolstr (bool b) |
Boolean to string. More... | |
double | laelaps::degToRad (double d) |
Convert degrees to radians. More... | |
double | laelaps::radToDeg (double r) |
Convert radians to degrees. More... | |
int | laelaps::iabs (int a) |
Integer absolute value. More... | |
double | laelaps::fcap (double a, double min, double max) |
Cap value within limits [min, max]. More... | |
int | laelaps::cap (int a, int min, int max) |
Cap value within limits [min, max]. More... | |
uint_t | laelaps::cap (uint_t a, uint_t min, uint_t max) |
Cap value within limits [min, max]. More... | |
double | laelaps::signof (double a) |
Sign of a. More... | |
int | laelaps::signof (int a) |
Sign of a. More... | |
bool | laelaps::operator< (const struct timeval &lhs, const struct timeval &rhs) |
Less than compare operator. More... | |
bool | laelaps::operator== (const struct timeval &lhs, const struct timeval &rhs) |
Equality compare operator. More... | |
bool | laelaps::operator> (const struct timeval &lhs, const struct timeval &rhs) |
Greater than compare operator. More... | |
bool | laelaps::operator<= (const struct timeval &lhs, const struct timeval &rhs) |
Less than or equal to compare operator. More... | |
bool | laelaps::operator>= (const struct timeval &lhs, const struct timeval &rhs) |
Greater than or equal to compare operator. More... | |
struct timeval | laelaps::operator+ (const struct timeval &op1, const struct timeval &op2) |
Addition operator. More... | |
struct timeval | laelaps::operator- (const struct timeval &op1, const struct timeval &op2) |
Subtraction operator. More... | |
long | laelaps::dt_usec (struct timeval &t1, struct timeval &t0) |
Calculate delta time in microseconds. More... | |
double | laelaps::dt (struct timeval &t1, struct timeval &t0) |
Calculate delta time. More... | |
bool | laelaps::operator< (const struct timespec &lhs, const struct timespec &rhs) |
Less than compare operator. More... | |
bool | laelaps::operator== (const struct timespec &lhs, const struct timespec &rhs) |
Equality compare operator. More... | |
bool | laelaps::operator> (const struct timespec &lhs, const struct timespec &rhs) |
Greater than compare operator. More... | |
bool | laelaps::operator<= (const struct timespec &lhs, const struct timespec &rhs) |
Less than or equal to compare operator. More... | |
bool | laelaps::operator>= (const struct timespec &lhs, const struct timespec &rhs) |
Greater than or equal to compare operator. More... | |
struct timespec | laelaps::operator+ (const struct timespec &op1, const struct timespec &op2) |
Addition operator. More... | |
struct timespec | laelaps::operator- (const struct timespec &op1, const struct timespec &op2) |
Subtraction operator. More... | |
long long | laelaps::dt_nsec (struct timespec &t1, struct timespec &t0) |
Calculate delta time in nanoseconds. More... | |
double | laelaps::dt (struct timespec &t1, struct timespec &t0) |
Calculate delta time. More... | |
std::string | laelaps::getRealDeviceName (const std::string &strDevName) |
Get real device name. More... | |
std::vector< std::string > & | laelaps::split (const std::string &s, char delim, std::vector< std::string > &elems) |
Split string at the delimiter character. More... | |
std::vector< std::string > | laelaps::split (const std::string &s, char delim) |
Split string at the delimiter character. More... | |
Laelaps common utilities.
Definition in file laeUtils.h.