Public Member Functions
Utility Class Reference

#include <utility.h>

List of all members.

Public Member Functions

const float displaceAngle (const float a1, float a2) const
const float euclideanDistance (const std::vector< float > a, const std::vector< float > b) const
const float findAngleFromAToB (const std::vector< float > a, const std::vector< float > b) const
const float findDistanceBetweenAngles (const float a1, const float a2) const
const float getEuclideanDist (const std::vector< float > a, std::vector< float > b) const
 Utility ()
 ~Utility ()

Detailed Description

Definition at line 12 of file utility.h.


Constructor & Destructor Documentation

Definition at line 3 of file utility.cpp.

Utility::~Utility ( ) [inline]

Definition at line 16 of file utility.h.


Member Function Documentation

const float Utility::displaceAngle ( const float  a1,
float  a2 
) const

Definition at line 82 of file utility.cpp.

const float Utility::euclideanDistance ( const std::vector< float >  a,
const std::vector< float >  b 
) const

This method returns the Euclidean distance between two position vectors

Definition at line 7 of file utility.cpp.

const float Utility::findAngleFromAToB ( const std::vector< float >  a,
const std::vector< float >  b 
) const

This method returns the angle that will form a straight line from position a to position b. a and b are [x, y] vectors.

Definition at line 15 of file utility.cpp.

const float Utility::findDistanceBetweenAngles ( const float  a1,
const float  a2 
) const

This method returns distance between orientations a1 and a2. The distance is in the range [-PI, PI].

Definition at line 56 of file utility.cpp.

const float Utility::getEuclideanDist ( const std::vector< float >  a,
std::vector< float >  b 
) const

a and b must be the same size

Definition at line 96 of file utility.cpp.


The documentation for this class was generated from the following files:


corobot_state_tf
Author(s):
autogenerated on Wed Aug 26 2015 11:09:39