Kuon  1.1.3
RoadNarrows Robotics Large Outdoor Mobile Robot Project
kuonUtils.h File Reference

Kuon common utilities. More...

#include <sys/types.h>
#include <sys/time.h>
#include <math.h>
#include <string>
#include "rnr/rnrconfig.h"
#include "rnr/log.h"
#include "Kuon/kuon.h"

Go to the source code of this file.

Namespaces

 kuon
 The Kuon namespace encapsulates all Kuon related constructs.
 

Macros

#define M_TAU   (2.0 * M_PI)
 tau = 2 * pi
 

Functions

uint_t kuon::strToVersion (const std::string &str)
 Convert version dotted string to integer equivalent. More...
 
const char * kuon::getStrError (const int ecode)
 Get the error string describing the error code. More...
 
double kuon::degToRad (double d)
 Convert degrees to radians. More...
 
double kuon::radToDeg (double r)
 Convert radians to degrees. More...
 
int kuon::iabs (int a)
 Integer absolute value. More...
 
double kuon::fcap (double a, double min, double max)
 Cap value within limits [min, max]. More...
 
int kuon::icap (int a, int min, int max)
 Cap value within limits [min, max]. More...
 
const char * kuon::boolstr (bool b)
 Boolean to string. More...
 
bool kuon::operator< (const struct timeval &lhs, const struct timeval &rhs)
 Compare operator to test if left hand side time is earlier than the right hand side time. More...
 
bool kuon::operator== (const struct timeval &lhs, const struct timeval &rhs)
 Compare operator to test if left hand side time equals the right hand side time. More...
 
std::string kuon::getRealDeviceName (const std::string &strDevName)
 Get real device name. More...
 

Detailed Description

Kuon common utilities.

LastChangedDate
2014-04-04 17:05:03 -0600 (Fri, 04 Apr 2014)
Rev
3629
Author
Robin Knight (robin.nosp@m..kni.nosp@m.ght@r.nosp@m.oadn.nosp@m.arrow.nosp@m.s.co.nosp@m.m)

Definition in file kuonUtils.h.