Classes | Typedefs | Enumerations | Functions
rs Namespace Reference

This namespace groups typedefs and enums used in the rs::RangeSensor class and the rs::RangeSensor class itself. More...

Classes

class  RangeSensor
 The rs::RangeSensor class simulates different range finder sensors based on the given rs::SensorType enumerator. More...
 

Typedefs

typedef std::shared_ptr< std::vector< float > > rangeArray_ptr
 shortcut for a pointer to a vector of floats representing range readings in meters. More...
 

Enumerations

enum  SensorType { laser, us }
 Enumerator for supported sensor types. More...
 

Functions

double correctYawAngle (const double theta, const double increment)
 Calculate a correct euler angle after incrementing/decrementing. More...
 
double degToRad (double angle)
 Conversion from degrees to radiants. More...
 
double radToDeg (double angle)
 Conversion from radiants to degrees. More...
 
const int sgn (const int x)
 Get the sign of an interger. More...
 

Detailed Description

This namespace groups typedefs and enums used in the rs::RangeSensor class and the rs::RangeSensor class itself.

Typedef Documentation

shortcut for a pointer to a vector of floats representing range readings in meters.

Definition at line 30 of file RangeSensor.h.

Enumeration Type Documentation

Enumerator for supported sensor types.

Enumerator
laser 

enum of laser sensor type

us 

enum of ultra sensonic range sensor type

Definition at line 35 of file RangeSensor.h.

Function Documentation

double rs::correctYawAngle ( const double  theta,
const double  increment 
)

Calculate a correct euler angle after incrementing/decrementing.

Problem: Euler angles are not continous, they jump from 180deg to -180 deg. This function calculates new euler angles with respect to this particular behaviour.

Parameters
[in]thetabase angle in radiants to be incremented/decremented
[in]incrementamount of change to be applied to the theta value
Returns
correct yaw angle in radiants

Definition at line 12 of file RangeSensor.cpp.

double rs::degToRad ( double  angle)

Conversion from degrees to radiants.

Parameters
[in]angleangle in degrees
Returns
angle in radiants

Definition at line 33 of file RangeSensor.cpp.

double rs::radToDeg ( double  angle)

Conversion from radiants to degrees.

Parameters
[in]angleangle in radiants
Returns
angle in degrees

Definition at line 35 of file RangeSensor.cpp.

const int rs::sgn ( const int  x)

Get the sign of an interger.

Parameters
[in]xinput integer value
Returns
if x>=0 return +1, else -1

Definition at line 31 of file RangeSensor.cpp.



pses_simulation
Author(s): Sebastian Ehmes
autogenerated on Wed Dec 13 2017 19:37:54