All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions | Variables
gazebo::math Namespace Reference

Math namespace. More...

Classes

class  Angle
 An angle and related functions. More...
 
class  Box
 Mathematical representation of a box and related functions. More...
 
class  Matrix3
 A 3x3 matrix class. More...
 
class  Matrix4
 A 3x3 matrix class. More...
 
class  Plane
 A plane and related functions. More...
 
class  Pose
 Encapsulates a position and rotation in three space. More...
 
class  Quaternion
 A quaternion class. More...
 
class  Rand
 Random number generator class. More...
 
class  RotationSpline
 Spline for rotations. More...
 
class  Spline
 Splines. More...
 
class  Vector2d
 Generic double x, y vector. More...
 
class  Vector2i
 Generic integer x, y vector. More...
 
class  Vector3
 The Vector3 class represents the generic vector containing 3 elements. More...
 
class  Vector4
 double Generic x, y, z, w vector More...
 

Typedefs

typedef boost::mt19937 GeneratorType
 
typedef
boost::normal_distribution
< double > 
NormalRealDist
 
typedef
boost::variate_generator
< GeneratorType
&, NormalRealDist
NRealGen
 
typedef
boost::variate_generator
< GeneratorType
&, UniformIntDist
UIntGen
 
typedef boost::uniform_int< int > UniformIntDist
 
typedef boost::uniform_real
< double > 
UniformRealDist
 
typedef
boost::variate_generator
< GeneratorType
&, UniformRealDist
URealGen
 

Functions

template<typename T >
clamp (T _v, T _min, T _max)
 simple clamping function
 
template<typename T >
bool equal (const T &_a, const T &_b, const T &_epsilon=1e-6)
 check if two values are equal, within a tolerance
 
bool isnan (float _v)
 check if a float is NaN
 
bool isnan (double _v)
 check if a double is NaN
 
bool isPowerOfTwo (unsigned int _x)
 is this a power of 2?
 
template<typename T >
max (const std::vector< T > &_values)
 get the maximum value of vector of values
 
template<typename T >
mean (const std::vector< T > &_values)
 get mean of vector of values
 
template<typename T >
min (const std::vector< T > &_values)
 get the minimum value of vector of values
 
double parseFloat (const std::string &_input)
 parse string into float
 
int parseInt (const std::string &_input)
 parse string into an integer
 
template<typename T >
precision (const T &_a, const unsigned int &_precision)
 get value at a specified precision
 
template<typename T >
variance (const std::vector< T > &_values)
 get variance of vector of values
 

Variables

static const double NAN_D = std::numeric_limits<double>::quiet_NaN()
 Returns the representation of a quiet not a number (NAN)
 
static const int NAN_I = std::numeric_limits<int>::quiet_NaN()
 Returns the representation of a quiet not a number (NAN)
 

Detailed Description

Math namespace.

Typedef Documentation

typedef boost::mt19937 gazebo::math::GeneratorType
typedef boost::normal_distribution<double> gazebo::math::NormalRealDist
typedef boost::variate_generator<GeneratorType&, NormalRealDist > gazebo::math::NRealGen
typedef boost::variate_generator<GeneratorType&, UniformIntDist > gazebo::math::UIntGen
typedef boost::uniform_int<int> gazebo::math::UniformIntDist
typedef boost::uniform_real<double> gazebo::math::UniformRealDist
typedef boost::variate_generator<GeneratorType&, UniformRealDist > gazebo::math::URealGen