Extends the PSSource class to provide plume generation based on the meandering algorithm. More...
#include <PSSources.h>
Public Member Functions | |
int | cleanup () |
Function for cleaning up the class. | |
int | generatePoints () |
Function for generating plume points based on the meandering algorithm. | |
int | getChemicalReading (PSPoint3d *point, PSOdorData *odor_data) |
Function for reading a single chemical point based on the robot current position. | |
PSMeadering () | |
PSMeadering constructor. This is the class constructor. | |
int | setup () |
Function for setting up the class. | |
~PSMeadering () | |
PSMeadering destructor. | |
Public Attributes | |
PSRect | arenaRect |
double | dispersionCoeficient |
int | maxPoints |
int | numOfPlumePoints |
double | radius |
double | releaseRate |
PSPoint3d | startPoint |
Private Member Functions | |
void | linearInterpolation (PSPoint3d *points, int numOfPoints) |
Linear interpolation. |
Extends the PSSource class to provide plume generation based on the meandering algorithm.
Definition at line 243 of file PSSources.h.
PSMeadering constructor. This is the class constructor.
Definition at line 45 of file PSMeadering.cpp.
PSMeadering destructor.
This is the class destructor.
Definition at line 66 of file PSMeadering.cpp.
int plumesim::PSMeadering::cleanup | ( | ) | [virtual] |
Function for cleaning up the class.
none. |
Reimplemented from plumesim::PSSource.
Definition at line 82 of file PSMeadering.cpp.
int plumesim::PSMeadering::generatePoints | ( | ) | [virtual] |
Function for generating plume points based on the meandering algorithm.
none. |
Reimplemented from plumesim::PSSource.
Definition at line 90 of file PSMeadering.cpp.
int plumesim::PSMeadering::getChemicalReading | ( | PSPoint3d * | point, |
PSOdorData * | odor_data | ||
) | [virtual] |
Function for reading a single chemical point based on the robot current position.
point | A 3D point containning the current position of the robot. |
odor_data | The odor data structure where the result is written. |
Reimplemented from plumesim::PSSource.
Definition at line 146 of file PSMeadering.cpp.
void plumesim::PSMeadering::linearInterpolation | ( | PSPoint3d * | points, |
int | numOfPoints | ||
) | [private] |
Linear interpolation.
points | Pointer to array of points to interpolate. |
numOfPoints | Number of points in the array. |
newPoints | Pointer to linked list of points to write the result to. |
Definition at line 161 of file PSMeadering.cpp.
int plumesim::PSMeadering::setup | ( | ) | [virtual] |
Function for setting up the class.
none. |
Reimplemented from plumesim::PSSource.
Definition at line 73 of file PSMeadering.cpp.
Rectangle containing the environment.
Definition at line 303 of file PSSources.h.
Dispersion coeficient.
Definition at line 305 of file PSSources.h.
Maximum number of points to be drawn for each point.
Definition at line 307 of file PSSources.h.
Total number of plume points.
Definition at line 308 of file PSSources.h.
Radius of the odor reading sphere.
Definition at line 306 of file PSSources.h.
Release rate.
Definition at line 304 of file PSSources.h.
Odor release point.
Definition at line 302 of file PSSources.h.