37 #define COUT(prefix,msg) (std::cout<<prefix<<msg<<std::endl) 38 #define CERR(prefix,msg) (std::cerr<<prefix<<msg<<std::endl) 49 static const float PI = 3.14159;
51 static const float EPS = 0.0001;
55 while (a < -PI) a +=
TWO_PI;
56 while (a > PI) a -=
TWO_PI;
66 gettimeofday(&now, NULL);
67 return now.tv_usec + (
timestamp_t) now.tv_sec * 1000000;
71 return ( (a < 0.0) == (b < 0.0) && std::abs(b) > std::numeric_limits<float>::max() - std::abs(a) );
76 #endif // CREATE_UTIL_H
static const float IN_PLACE_RADIUS
static const float TWO_PI
static timestamp_t getTimestamp()
unsigned long long timestamp_t
static const float V_3_TICKS_PER_REV
static const uint32_t V_3_MAX_ENCODER_TICKS
static const float MAX_RADIUS
bool willFloatOverflow(const float a, const float b)
static const float STRAIGHT_RADIUS
float normalizeAngle(const float &angle)
static const uint8_t STREAM_HEADER