Public Member Functions | Public Attributes | Private Attributes
plumesim::PSFluent Class Reference

Extends the PSSource class to provide plume generation based on Fluent log files. More...

#include <PSSources.h>

Inheritance diagram for plumesim::PSFluent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int cleanup ()
 Function for cleaning up the class.
int generatePoints ()
 Function for generating plume points based on a set of Fluent log files.
int getChemicalReading (PSPoint3d *point, PSOdorData *odor_data)
 Function for reading a single chemical point based on the robot current position.
 PSFluent ()
 PSFluent constructor. This is the class constructor.
int setup ()
 Function for setting up the class.
 ~PSFluent ()
 PSFluent destructor.

Public Attributes

double cellSize
int currentFrame
std::string fileName
FILE * logFile
double maxOdorValue
int maxPointsPerCell
int numOfFrames

Private Attributes

std::vector< PSFramePointframe

Detailed Description

Extends the PSSource class to provide plume generation based on Fluent log files.

Definition at line 494 of file PSSources.h.


Constructor & Destructor Documentation

PSFluent constructor. This is the class constructor.

Definition at line 45 of file PSFluent.cpp.

PSFluent destructor.

This is the class destructor.

Definition at line 56 of file PSFluent.cpp.


Member Function Documentation

int plumesim::PSFluent::cleanup ( ) [virtual]

Function for cleaning up the class.

Parameters:
none.
Returns:
none.

Reimplemented from plumesim::PSSource.

Definition at line 80 of file PSFluent.cpp.

Function for generating plume points based on a set of Fluent log files.

Parameters:
none.
Returns:
0 - if successful
-1 - otherwise

Reimplemented from plumesim::PSSource.

Definition at line 89 of file PSFluent.cpp.

int plumesim::PSFluent::getChemicalReading ( PSPoint3d point,
PSOdorData odor_data 
) [virtual]

Function for reading a single chemical point based on the robot current position.

Parameters:
pointA 3D point containning the current position of the robot.
odor_dataThe odor data structure where the result is written.
Returns:
0 - if successful
-1 - otherwise

Reimplemented from plumesim::PSSource.

Definition at line 146 of file PSFluent.cpp.

int plumesim::PSFluent::setup ( ) [virtual]

Function for setting up the class.

Parameters:
none.
Returns:
none.

Reimplemented from plumesim::PSSource.

Definition at line 63 of file PSFluent.cpp.


Member Data Documentation

Cell size of the grid in meters.

Definition at line 558 of file PSSources.h.

Current frame index.

Definition at line 557 of file PSSources.h.

Path to the log file.

Definition at line 554 of file PSSources.h.

std::vector<PSFramePoint> plumesim::PSFluent::frame [private]

Current frame.

Definition at line 564 of file PSSources.h.

Pointer to the log file.

Definition at line 553 of file PSSources.h.

Maximum odor value.

Definition at line 560 of file PSSources.h.

Maximum number of points to be drawn for each cell.

Definition at line 559 of file PSSources.h.

Number of frames.

Definition at line 556 of file PSSources.h.


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


plumesim
Author(s): Gonçalo Cabrita and Pedro Sousa
autogenerated on Mon Jan 6 2014 11:27:16